Skip to content

Commit

Permalink
Remove gunicorn config from container image CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
tcassaert committed Sep 24, 2024
1 parent 337fd69 commit 8847ea3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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()"]
12 changes: 0 additions & 12 deletions conf/gunicorn.dev.py

This file was deleted.

10 changes: 0 additions & 10 deletions conf/gunicorn.prod.py

This file was deleted.

0 comments on commit 8847ea3

Please sign in to comment.