-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 811 Bytes
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 811 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
#FROM python:3.7-slim-buster
FROM tiangolo/uwsgi-nginx-flask:python3.8
# Installing key dependencies
RUN apt-get update \
&& apt-get --yes --no-install-recommends install \
python3-dev \
python3-pip python3-venv python3-wheel python3-setuptools \
build-essential cmake \
graphviz git openssh-client \
postgresql-contrib \
libssl-dev libffi-dev libpq-dev gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
#ENV LISTEN_PORT 5000
#EXPOSE 5000
COPY ./app /app
CMD [ "python", "app/main.py" ]
#CMD ["python3", "-m", "main", "--host=0.0.0.0", "--port=5000"]
#COPY . . /This had problems
#CMD ["python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=5000"]
#CMD ["uwsgi", "wsgi.ini"]