AIZEN-007 commited on
Commit
a928721
·
verified ·
1 Parent(s): 445e3e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -22,11 +22,11 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
22
  COPY . /app
23
 
24
  # Expose the port Spaces will route to
25
- EXPOSE 8080
26
 
27
  # healthcheck (optional)
28
  HEALTHCHECK --interval=30s --timeout=5s --start-period=5s \
29
  CMD curl -f http://localhost:8080/health || exit 1
30
 
31
  # Start the app (use server:app because your FastAPI app object is 'app' in server.py)
32
- CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8080", "--workers", "1"]
 
22
  COPY . /app
23
 
24
  # Expose the port Spaces will route to
25
+ EXPOSE 7860
26
 
27
  # healthcheck (optional)
28
  HEALTHCHECK --interval=30s --timeout=5s --start-period=5s \
29
  CMD curl -f http://localhost:8080/health || exit 1
30
 
31
  # Start the app (use server:app because your FastAPI app object is 'app' in server.py)
32
+ CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]