MatteoAldovardi commited on
Commit
8fc8f5c
·
1 Parent(s): 5022361
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -16,11 +16,11 @@ RUN pip install --no-cache-dir -r requirements.txt
16
  RUN mkdir -p models
17
 
18
  # Expose the port FastAPI will run on. Hugging Face Spaces often expects
19
- # port 8000 for web apps.
20
- EXPOSE 8000
21
 
22
  # Command to run the Uvicorn server
23
  # The --host 0.0.0.0 makes the server accessible from outside the
24
  # container
25
  # The --port 7860 matches the EXPOSE instruction
26
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
16
  RUN mkdir -p models
17
 
18
  # Expose the port FastAPI will run on. Hugging Face Spaces often expects
19
+ # port 7860 for web apps.
20
+ EXPOSE 7860
21
 
22
  # Command to run the Uvicorn server
23
  # The --host 0.0.0.0 makes the server accessible from outside the
24
  # container
25
  # The --port 7860 matches the EXPOSE instruction
26
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]