Merge branch 'master' into 'main'

Docker

See merge request keriks/flask-namedays!2
This commit is contained in:
Eriks Karls 2021-11-09 12:14:21 +00:00
commit 1e4b38e40a
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