Added Docker stuff.

This commit is contained in:
msinkec
2020-10-23 12:22:04 +02:00
parent 8996dbcefe
commit a17c3d7133
2 changed files with 18 additions and 0 deletions

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:3.9
COPY app.py /usr/src/portal-webapp/
COPY templates /usr/src/portal-webapp/templates
WORKDIR /usr/src/portal-webapp
RUN pip install --no-cache-dir flask flask-dropzone gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:80", "-w", "1", "--access-logfile", "-", "app:app"]