forked from TNO/self-healing-4-cyber-security
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 931 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 python:3.8.6-slim-buster
ENV TZ Europe/Amsterdam
# Install applications so we can use them for debugging
RUN applications="bash \
python3-dev \
tzdata \
curl \
gcc \
git \
tar \
gawk" && \
apt-get update -y && \
apt-get install -y ${applications}
# Create directories used by applications
RUN mkdir -p /backend/server
ADD server/requirements.txt /backend/server/requirements.txt
RUN pip3 install --upgrade pip \
&& pip3 install --no-cache-dir -r /backend/server/requirements.txt && rm /backend/server/requirements.txt
ADD server/backend /backend/server/backend
WORKDIR /backend/
ENV PYTHONPATH /backend/server:/usr/local/lib/python3.7/site-packages:/usr/lib/python3.7/site-packages
ENV DOCKER_HOST "172.17.0.1:2375"
EXPOSE 5000
CMD ["python3", "/backend/server/backend/main.py"]