-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 755 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
# syntax=docker/dockerfile:1
# https://docs.docker.com/language/python/build-images/
# FROM python:3.8.0-slim
FROM python:3.8.10
# setup python virtual environment
# https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
#COPY requirements.txt requirements.txt
#RUN pip3 install --upgrade pip
#RUN pip3 install -r requirements.txt
#
# requirements.txt
#
COPY requirements.txt .
RUN pip install pip --upgrade
RUN pip install setuptools --upgrade
RUN pip install wheel
RUN pip install -r requirements.txt
WORKDIR /github-vis
# code is "baked" into docker image
# comment out if not required to be "baked" in
# COPY . .
ENTRYPOINT [ "python3" ]