Dama03 commited on
Commit
757954b
·
1 Parent(s): f908ffe
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -18,8 +18,10 @@ RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  COPY . .
20
 
21
- EXPOSE 8000
 
 
22
 
23
- # Hugging Face Spaces sets PORT. Do not fall back to 8000 here to avoid 'Starting' state.
24
  CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port $PORT"]
25
 
 
18
 
19
  COPY . .
20
 
21
+ # Set default port to 7860 (Hugging Face Spaces default)
22
+ ENV PORT=7860
23
+ EXPOSE $PORT
24
 
25
+ # Start the application
26
  CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port $PORT"]
27