-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
19 lines (15 loc) · 741 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:latest
MAINTAINER InnovativeInventor
WORKDIR /usr/src/app
RUN apt-get update && apt-get install python-pip python-dev libmariadb-dev-compat libmariadb-dev -y
RUN pip3 install waitress gunicorn flask Flask-Dance validators dataset pytz filelock gitpython icalendar rapidfuzz mysqlclient PyMySQL
COPY . /usr/src/app
#RUN rm index.db && python3 preprocess.py
#RUN pip3 install gunicorn flask Flask-Caching Flask-Dance
#RUN rm Dockerfile
EXPOSE 80
#CMD [ "gunicorn", "app:app", "-w", "4", "--bind", "127.0.0.1:80" ]
CMD [ "waitress-serve", "--listen=*:80", "--url-scheme=https", "app:app" ]
#CMD [ "gunicorn", "app:app", "--bind", "0.0.0.0:80" ]
#EXPOSE 8080
#CMD [ "gunicorn", "app:app", "-w", "4", "--bind", "127.0.0.1:8080" ]