Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -17,8 +17,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 17 |
# Copy the rest of your application code
|
| 18 |
COPY . .
|
| 19 |
|
| 20 |
-
#
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
#
|
| 24 |
-
#
|
|
|
|
|
|
| 17 |
# Copy the rest of your application code
|
| 18 |
COPY . .
|
| 19 |
|
| 20 |
+
# --- THIS IS THE DEFINITIVE STARTUP COMMAND ---
|
| 21 |
+
# It tells the container exactly how to run the web server.
|
| 22 |
+
# Gunicorn is a robust process manager for production.
|
| 23 |
+
# It uses Uvicorn workers to handle the async FastAPI code.
|
| 24 |
+
# It binds to port 7860 on all network interfaces.
|
| 25 |
+
CMD ["gunicorn", "-w", "2", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860", "app:app"]
|