Spaces:
Sleeping
Sleeping
Fix PORT environment variable substitution
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -38,4 +38,4 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
|
| 38 |
CMD curl -f http://localhost:${PORT}/ || exit 1
|
| 39 |
|
| 40 |
# Run the application (uses PORT environment variable)
|
| 41 |
-
CMD
|
|
|
|
| 38 |
CMD curl -f http://localhost:${PORT}/ || exit 1
|
| 39 |
|
| 40 |
# Run the application (uses PORT environment variable)
|
| 41 |
+
CMD sh -c "uvicorn main:app --host 0.0.0.0 --port ${PORT}"
|