Default worker count

This commit is contained in:
Nexus 2024-04-20 02:38:42 +01:00
parent 8459aa3621
commit a04b0e8811
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -4,5 +4,4 @@ WORKDIR /app
COPY ipserv.py /app
EXPOSE 80/tcp
RUN pip install fastapi requests gunicorn uvicorn[standard] aiohttp
ARG WORKERS=${WORKERS:-4}
CMD ["gunicorn", "-w", ${WORKERS}, "-b", "0.0.0.0:80", "--forwarded-allow-ips", "*", "--worker-class", "uvicorn.workers.UvicornWorker", "ipserv:app"]
CMD ["gunicorn", "-b", "0.0.0.0:80", "--forwarded-allow-ips", "*", "--worker-class", "uvicorn.workers.UvicornWorker", "ipserv:app"]