-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (30 loc) · 836 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
33
# # start by pulling the python image
# FROM python:3.9-buster
# WORKDIR /app
# RUN apt-get update && apt-get install -y \
# gcc
# RUN /usr/local/bin/python -m pip install --upgrade pip
# COPY requirements.txt ./
# RUN pip install -r requirements.txt
# COPY . .
# EXPOSE 5002
# CMD ["python", "./inference.py" ]
# FROM python:3.9-buster
# RUN apt-get update && apt-get install -y \
# gcc
# RUN /usr/local/bin/python -m pip install --upgrade pip
# COPY requirements.txt .
# RUN pip3 install -r requirements.txt
# COPY . .
# WORKDIR /app
# CMD ["flask", "run"]
FROM python:3.9-buster
RUN apt-get update && apt-get install -y \
gcc \
libgl1-mesa-glx
RUN python -m pip install --upgrade pip
WORKDIR /app
COPY . /app
RUN pip install -r ./requirements.txt
EXPOSE 5002
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"]