-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (27 loc) · 998 Bytes
/
Dockerfile
File metadata and controls
56 lines (27 loc) · 998 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# FROM tiangolo/uwsgi-nginx-flask:python3.6-alpine3.7
# ENV LISTEN_PORT=8000
# EXPOSE 8000
# COPY /flaskbackend /flaskbackend
FROM python:3
WORKDIR /app
COPY './requirements.txt' .
RUN pip install --upgrade pip
# RUN export TMPDIR=$HOME/tmp
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
# RUN TMPDIR=/data/vincents/ pip install --cache-dir=/data/vincents/ --build /data/vincents/ requirements.txt
COPY . .
WORKDIR /app/flaskbackend
CMD ["python", "main.py"]
# FROM python:3
# WORKDIR /usr/src/app
# COPY requirements.txt ./
# RUN pip install --no-cache-dir -r requirements.txt
# COPY . .
# CMD [ "python", "./flaskbackend/main.py" ]
# FROM python:3.8.0
# WORKDIR /user/src/app
# COPY './requirements.txt' .
# RUN pip install -r requirements.txt
# COPY /flaskbackend .
# ENTRYPOINT [ "python", "main.py"]