This commit is contained in:
Eriks Karls 2021-11-09 14:11:50 +02:00
parent aadc927569
commit 72c0f8efe8
2 changed files with 9 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git
*.pdf

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM python:3.9-alpine
RUN pip install --no-cache-dir -U setuptools pip wheel && pip install --no-cache-dir Flask icalendar gunicorn
COPY . /app
WORKDIR /app
CMD ["gunicorn", "--workers=2", "--access-logfile", "-", "--log-level", "warning", "-b", "0.0.0.0:5000", "app:app"]
#CMD python app.py