05prey commited on
Commit
e71fa43
·
verified ·
1 Parent(s): f90e4b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -6,5 +6,4 @@ RUN pip install --no-cache-dir -r requirements.txt
6
 
7
  COPY app.py .
8
 
9
- # HF sets PORT; bind to it. Do NOT hardcode 7860/7861.
10
- CMD ["sh", "-lc", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]
 
6
 
7
  COPY app.py .
8
 
9
+ CMD ["sh", "-lc", "python -c \"import os; print('PORT=', os.getenv('PORT'));\" && uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]