Added docker container

This commit is contained in:
2019-07-11 22:10:27 +02:00
parent d56c8196e7
commit 6e1f4f0daf
2 changed files with 127 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM python:3.7.4-alpine
RUN apk add sqlite3
WORKDIR /usr/src/app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt gunicorn
COPY . .
ENV WIE_RIJD_DB "/data/wie_rijd.db"
VOLUME /data
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]