codeBOKER commited on
Commit
dbf61a6
·
1 Parent(s): b41ea0e

Fix PORT environment variable substitution

Browse files
Files changed (1) hide show
  1. 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 ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "${PORT}"]
 
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}"