forked from ssc-oscar/DRE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (58 loc) · 1.64 KB
/
Dockerfile
File metadata and controls
64 lines (58 loc) · 1.64 KB
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
# Stage 0, "build-stage", based on Node.js, to build and compile the frontend
# FROM node as build-stage
FROM ubuntu:18.04
ENV TZ=America/New_York
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -q \
&& apt-get install -yqq \
curl \
git \
ssh \
gcc \
make \
build-essential \
libkrb5-dev \
sudo \
apt-utils \
iputils-ping \
telnet \
less \
locales \
libzmq3-dev \
libssl-dev \
libcurl4-openssl-dev \
libopenblas-base \
openssh-server \
lsof sudo \
fonts-dejavu \
sssd \
sssd-tools \
vim \
git \
curl lsb-release \
tmux vim-runtime tmux zsh libpng-dev \
certbot \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& 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 eecsCA_v3.crt /etc/ssl/
COPY sssd.conf /etc/sssd/
COPY common* /etc/pam.d/
RUN chmod 0600 /etc/sssd/sssd.conf /etc/pam.d/common*
RUN if [ ! -d /var/run/sshd ]; then mkdir /var/run/sshd; chmod 0755 /var/run/sshd; fi
COPY init.sh startsvc.sh notebook.sh startDef.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