diff --git a/Dockerfile b/Dockerfile index 3045ce904efaf903ab722839ebd5c541f6894245..f315908814d8f92ff59b50b7dfff69a0818968f9 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"] +