-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (33 loc) · 1.04 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
FROM debian:jessie
MAINTAINER Harvard University FAS Research Computing
RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
build-essential \
python3 \
python3-dev \
python3-pip \
libpcre3 \
libpcre3-dev \
git
RUN pip3 install -U pip setuptools wheel
RUN mkdir -p /usr/src/app/deploy
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
COPY deploy/requirements.txt /usr/src/app/deploy/
RUN pip3 --no-cache-dir install -r /usr/src/app/deploy/requirements.txt
RUN pip3 --no-cache-dir install -r /usr/src/app/requirements.txt
COPY . /usr/src/app
RUN pip3 --no-cache-dir install -e /usr/src/app/
RUN apt-get remove -y \
build-essential \
libpcre3-dev \
git \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN ln -s /usr/src/app/deploy/start-ariadne-nda.sh /usr/local/bin/
RUN groupadd uwsgi
RUN useradd -r -g uwsgi uwsgi
USER uwsgi
EXPOSE 8000
CMD ["/usr/local/bin/start-ariadne-nda.sh"]