Skip to content

Commit cd017c7

Browse files
committed
Fix uvicorn startup: use python -m uvicorn to avoid venv shebang path issue
1 parent 914cd11 commit cd017c7

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
@@ -45,4 +45,4 @@ EXPOSE 8000
4545
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
4646
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/')" || exit 1
4747

48-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
48+
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)