Commit 643eee31 authored by Christophe Benz's avatar Christophe Benz
Browse files

Do not hardcode number of workers, upgrade gunicorn

parent ae399b0e
......@@ -3,7 +3,7 @@ LABEL maintainer=""
RUN pip install --no-cache-dir gunicorn==19.9.0
RUN pip install --no-cache-dir gunicorn==20.0.4
RUN apt-get update && \
apt-get install --yes --no-install-recommends chromium=83.0.4103.116-1~deb10u3
......@@ -25,4 +25,6 @@ RUN pip install --no-cache-dir --user --requirement requirements.txt --no-warn-s
COPY --chown=validata:validata . .
RUN pip install --no-cache-dir --user --editable .
CMD gunicorn --workers 4 --bind validata_ui:app
# Number of workers is defined by `WEB_CONCURRENCY` env variable.
# Cf
CMD gunicorn --bind validata_ui:app
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment