Spaces:
Runtime error
Runtime error
Hoe commited on
Commit ·
9bd9952
1
Parent(s): 0e5b706
Fix: run uvicorn as a python module
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -25,4 +25,4 @@ EXPOSE 7860
|
|
| 25 |
|
| 26 |
# 7. Start the API
|
| 27 |
# Note: I'm using the 'uv run' wrapper to ensure it uses the virtualenv it just made
|
| 28 |
-
CMD ["/usr/local/bin/uv", "run", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 25 |
|
| 26 |
# 7. Start the API
|
| 27 |
# Note: I'm using the 'uv run' wrapper to ensure it uses the virtualenv it just made
|
| 28 |
+
CMD ["/usr/local/bin/uv", "run", "python", "-m", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]
|