Commit 58da27d3 authored by Vũ Hoàng Anh's avatar Vũ Hoàng Anh

Update Dockerfile.prod

parent bacfd1d4
FROM python:3.11-slim
......@@ -17,5 +16,4 @@ COPY . .
# Expose port 5000 (Port chạy server)
EXPOSE 5000
# Tự động tính số worker = (Số Core * 2) + 1 để tận dụng tối đa CPU
CMD gunicorn server:app --workers $(( 2 * $(nproc) + 1 )) --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:5000 --timeout 60
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