From 8db04fc3aaa478bc580813c156ff8107fc4f610f Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Mon, 24 Jun 2019 12:28:12 -0600 Subject: [PATCH] Add docker build files --- .dockerignore | 18 ++++++++++++++++++ Dockerfile | 13 +++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile 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"]