Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -28,5 +28,5 @@ COPY --chown=user . /code
|
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
# 8. Start the API
|
| 31 |
-
#
|
| 32 |
-
CMD ["uvicorn", "
|
|
|
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
# 8. Start the API
|
| 31 |
+
# CRITICAL FIX: "main:app" matches your file structure where main.py is at the root
|
| 32 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|