Claude Code Claude Opus 4.6 commited on
Commit
ed27eaa
·
1 Parent(s): 2871217

Claude Code: use direct uvicorn command in Dockerfile CMD

Browse files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -18,4 +18,4 @@ EXPOSE 7860
18
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
19
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health').read()" || exit 1
20
 
21
- CMD ["python", "main.py"]
 
18
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
19
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health').read()" || exit 1
20
 
21
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]