diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..06ac207 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,18 @@ +.dockerignore +Dockerfile +__pycache__ +.pytest_cache +.coverage +htmlcov +dist/ +build/ +*.egg-info/ +.eggs +*.pyc +*.pyo +*.pyd +.Python +env +*.log +.git +instance diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e235aa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.7.3-alpine3.9 + +ADD . /app/ + +WORKDIR /app + +RUN pip install . +RUN pip install waitress + +RUN mkdir -p /app/instance +ENV HUMULUS_SETTINGS=/app/instance/settings.py + +CMD ["waitress-serve", "--call", "humulus:create_app"]