Update Dockerfile
Browse files16 unmodified lines171819202122232416 unmodified lines# Copy the rest of your application codeCOPY . .# Expose the port that the application will run onEXPOSE 7860# NO CMD OR ENTRYPOINT LINE HERE# The Hugging Face platform will provide the command to run the app.16 unmodified lines17181920212223242516 unmodified lines# Copy the rest of your application codeCOPY . .# --- THIS IS THE DEFINITIVE STARTUP COMMAND ---# It tells the container exactly how to run the web server.# Gunicorn is a robust process manager for production.# It uses Uvicorn workers to handle the async FastAPI code.# It binds to port 7860 on all network interfaces.CMD ["gunicorn", "-w", "2", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860", "app:app"]
Dockerfile+6-5