osnarayana commited on
Commit
99a91e8
·
1 Parent(s): ea8995e

Fix DockerFile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -20,7 +20,7 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  COPY . .
21
 
22
  # Expose FastAPI port
23
- EXPOSE 8000
24
 
25
  # Run FastAPI with uvicorn
26
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
20
  COPY . .
21
 
22
  # Expose FastAPI port
23
+ EXPOSE 7860
24
 
25
  # Run FastAPI with uvicorn
26
+ CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-7860}"]