diff --git a/Dockerfile b/Dockerfile index 7508f42..0f06af9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ RUN echo "[global]" >> $PIP_CONF && \ # Build and run as non-root (see https://pythonspeed.com/articles/root-capabilities-docker-security/) RUN groupadd --gid 1000 openeo && \ useradd --create-home --base-dir /home --uid 1000 --gid openeo openeo + WORKDIR /home/openeo USER openeo @@ -35,4 +36,4 @@ RUN pip install --upgrade pip COPY --chown=openeo requirements.txt . RUN pip install -r requirements.txt -CMD ["gunicorn", "--config=conf/gunicorn.prod.py", "openeo_aggregator.app:create_app()"] +CMD ["gunicorn", "openeo_aggregator.app:create_app()"] diff --git a/conf/gunicorn.dev.py b/conf/gunicorn.dev.py deleted file mode 100644 index 260f185..0000000 --- a/conf/gunicorn.dev.py +++ /dev/null @@ -1,12 +0,0 @@ -# See https://docs.gunicorn.org/en/stable/settings.html -# TODO #117 eliminate this file from this repository - -bind = ["0.0.0.0:8080"] - -workers = 1 -threads = 1 - -# Worker timeout -timeout = 60 - -print(f"loaded {__file__}") diff --git a/conf/gunicorn.prod.py b/conf/gunicorn.prod.py deleted file mode 100644 index 1554834..0000000 --- a/conf/gunicorn.prod.py +++ /dev/null @@ -1,10 +0,0 @@ -# See https://docs.gunicorn.org/en/stable/settings.html -# TODO #117 eliminate this file from this repository - -bind = ["0.0.0.0:8080"] - -workers = 10 -threads = 1 - -# Worker timeout -timeout = 15 * 60