We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f01f72 commit 319f3fcCopy full SHA for 319f3fc
1 file changed
Dockerfile
@@ -58,7 +58,7 @@ RUN mkdir -p /app/checkpoints
58
EXPOSE 8000
59
60
ENTRYPOINT ["tini", "--"]
61
-CMD ["uvicorn", "api.app:app", "--app-dir", "src", "--host", "0.0.0.0", "--port", "8000"]
+CMD ["sh", "-c", "uvicorn api.app:app --app-dir src --host 0.0.0.0 --port ${PORT:-8000}"]
62
63
64
# Optional target that bakes a local torch checkpoint into the image.
0 commit comments