-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 818 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 818 Bytes
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
# syntax=docker/dockerfile:experimental
# pull official base image
FROM python:3.8.1-slim-buster
# set work directory
ENV workDir /usr/src/app
WORKDIR ${workDir}
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install system dependencies
#RUN --mount=type=cache,target=/root/.cache/apt \
RUN apt-get update && \
apt-get install -y netcat && \
apt-get install -y wget && \
apt-get install -y unzip && \
apt-get install -y gcc
#git
# install dependencies
#RUN --mount=type=cache,target=/root/.cache/pip \
RUN pip install --upgrade pip
COPY ./requirements.txt ${workDir}/
#RUN --mount=type=cache,target=/root/.cache/pip \
RUN pip install -r requirements.txt
# copy project
COPY . ${workDir}/
# run entrypoint.sh
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]