Skip to content

Commit 0cf74d2

Browse files
committed
Make Docker container compatible with managed platform ports
1 parent 8d0c710 commit 0cf74d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ USER appuser
1919

2020
EXPOSE 8000
2121

22-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
22+
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}"]

0 commit comments

Comments
 (0)