Skip to content

Commit cf2d196

Browse files
committed
fixing port error
1 parent 4f61a9f commit cf2d196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webapp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ COPY --from=builder /app/src /app/src
3232
ENV PATH="/app/.venv/bin:$PATH"
3333

3434
# Run the application.
35-
#CMD ["fastapi", "run", "app/src/webapp", "--port", "8080", "--host", "0.0.0.0"]
36-
CMD ["uvicorn", "src.webapp.main:app", "--host", "0.0.0.0", "--port", "8080"]
35+
CMD ["sh", "-c", "uvicorn src.webapp.main:app --host 0.0.0.0 --port ${PORT}"]
36+
#CMD ["uvicorn", "src.webapp.main:app", "--host", "0.0.0.0", "--port", "8080"]

0 commit comments

Comments
 (0)