-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
32 lines (21 loc) · 917 Bytes
/
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
FROM ci.tno.nl/self-healing/common/python:master as python_shared_common
FROM python:3.7.4-alpine3.10
RUN cd /etc/apk/keys \
&& wget http://alpine.adiscon.com/[email protected] \
&& echo 'http://alpine.adiscon.com/3.7/stable' >> /etc/apk/repositories
RUN apk --update add --virtual build-dependencies libffi-dev openssl-dev gcc musl-dev build-base \
&& pip3 install --upgrade pip \
&& apk add git bash \
&& apk del build-dependencies
RUN mkdir -p /var/log/supervisor
COPY requirements.txt /auth/requirements.txt
RUN pip install --no-cache-dir -r /auth/requirements.txt && rm /auth/requirements.txt
COPY --from=python_shared_common /common /common
RUN cd /common && python3 setup.py install
COPY /auth /auth/auth
ENV TZ Europe/Amsterdam
EXPOSE 5000
ENV PYTHONUNBUFFERED=0
WORKDIR /auth
ENV PYTHONPATH /auth
CMD ["/usr/local/bin/python3.7", "/auth/auth/main.py"]