mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-19 22:42:54 +08:00
change gunicorn workers to 1 by default
This commit is contained in:
parent
67ba566716
commit
60916b62de
1 changed files with 2 additions and 3 deletions
|
@ -24,7 +24,7 @@ RUN rm -rf /app/felicity/templates/static/*
|
|||
COPY --from=webapp-build /app/dist /app/felicity/templates/static
|
||||
RUN cd /app && pip install -e .
|
||||
ENV PYTHONPATH=/app
|
||||
CMD ["gunicorn", "felicity.main:felicity", "--bind", "0.0.0.0:8000", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker"]
|
||||
CMD ["gunicorn", "felicity.main:felicity", "--bind", "0.0.0.0:8000", "--workers", "1", "--worker-class", "uvicorn.workers.UvicornWorker"]
|
||||
|
||||
|
||||
FROM python:3.12.3-bookworm AS server-api
|
||||
|
@ -36,8 +36,7 @@ COPY . /app/
|
|||
RUN rm -rf /app/felicity/templates/static/*
|
||||
RUN cd /app && pip install -e .
|
||||
ENV PYTHONPATH=/app
|
||||
CMD ["gunicorn", "felicity.main:felicity", "--bind", "0.0.0.0:8000", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker"]
|
||||
|
||||
CMD ["gunicorn", "felicity.main:felicity", "--bind", "0.0.0.0:8000", "--workers", "1", "--worker-class", "uvicorn.workers.UvicornWorker"]
|
||||
|
||||
FROM nginx:latest AS nginx-static
|
||||
RUN mkdir /app
|
||||
|
|
Loading…
Reference in a new issue