From 305bfbc861759b22bec27b2f7d7125ad23c31bec Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Mon, 22 Jun 2020 14:51:29 +0200 Subject: [PATCH] New base image and default config. --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3045ce9..f315908 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7-alpine +FROM python:3.7-buster # Initialize the project structure @@ -11,8 +11,13 @@ COPY . /srv WORKDIR /srv RUN pip3 install --no-cache-dir -r requirements.txt +# Create default config + +COPY config/sample/gunicorn/sample-docker.gunicorn.conf.py /src/config/gunicorn.conf.py + # Start the API Server EXPOSE 8008 ENTRYPOINT ["gunicorn"] -CMD ["-c", "config/gunicorn.conf.py", "engine-api.py:app"] +CMD ["-c", "/srv/config/gunicorn.conf.py", "src.server:app"] + -- GitLab