forked from ssc-oscar/DRE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
70 lines (62 loc) · 1.88 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Stage 0, "build-stage", based on Node.js, to build and compile the frontend
# FROM node as build-stage
FROM ubuntu:latest
ENV TZ=America/New_York
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && DEBIAN_FRONTEND='noninteractive' apt install -y curl gnupg apt-transport-https
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
RUN apt-get update -q \
&& apt-get install -yqq \
curl \
git \
ssh \
gcc \
make \
build-essential \
libkrb5-dev \
sudo \
apt-utils \
iputils-ping \
telnet \
socat \
less \
locales \
libzmq3-dev \
libssl-dev \
libcurl4-openssl-dev \
libopenblas-base \
openssh-server \
lsof sudo \
fonts-dejavu \
sssd \
sssd-tools \
vim \
git \
python \
curl lsb-release \
tmux vim-runtime tmux zsh libpng-dev \
certbot \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - \
&& sudo apt-get install -y nodejs
#RUN mkdir -p /opt/mern
#WORKDIR /opt/mern
#COPY package*.json /opt/mern/
#COPY ./ /opt/mern/
#ENV NODE_ENV development
#WORKDIR /opt/mern
#RUN npm install
# set up to work in a UTK environment
COPY euterpe-ilom_eecs_utk_edu_interm.cer /etc/ssl/
COPY sssd.conf /etc/sssd/
COPY common* /etc/pam.d/
RUN chmod 0600 /etc/sssd/sssd.conf /etc/pam.d/common* etc/sssd/* && \
if [ ! -d /var/run/sshd ]; then mkdir /var/run/sshd; chmod 0755 /var/run/sshd; fi
COPY *.sh /bin/
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
#FROM nginx
#COPY --from=build-stage /opt/mern/dist/ /usr/share/nginx/html
# Copy the default nginx.conf
#COPY nginx.conf /etc/nginx/conf.d/default.conf
#RUN chown nginx.nginx /usr/share/nginx/html/ -R