Skip to content

Commit 319f3fc

Browse files
committed
use railway dynamic PORT in app container
1 parent 5f01f72 commit 319f3fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUN mkdir -p /app/checkpoints
5858
EXPOSE 8000
5959

6060
ENTRYPOINT ["tini", "--"]
61-
CMD ["uvicorn", "api.app:app", "--app-dir", "src", "--host", "0.0.0.0", "--port", "8000"]
61+
CMD ["sh", "-c", "uvicorn api.app:app --app-dir src --host 0.0.0.0 --port ${PORT:-8000}"]
6262

6363

6464
# Optional target that bakes a local torch checkpoint into the image.

0 commit comments

Comments
 (0)