feat: rolling update uvicorn workers

This commit is contained in:
Abhishek Kumar 2026-02-26 19:33:43 +05:30
parent 7aef9c6db5
commit 2039b4ce51
10 changed files with 776 additions and 488 deletions

View file

@ -59,17 +59,15 @@ ENV PYTHONUNBUFFERED=1
# Copy application code
COPY ./api ./api
COPY ./scripts/start_services.sh ./scripts/start_services.sh
COPY ./scripts/start_services_dev.sh ./scripts/start_services_dev.sh
ENV PYTHONPATH=/app
# Disable file logging in Docker - logs go to stdout for docker logs
ENV LOG_TO_FILE=false
# Keep container alive by waiting for background processes
ENV WAIT_FOR_PROCESSES=true
# Expose the port FastAPI will run on
EXPOSE 8000
# Run the FastAPI app with uvicorn
CMD ["./scripts/start_services.sh"]
CMD ["./scripts/start_services_dev.sh"]