Abhishek Kumar commited on
Commit
a1b23c0
·
1 Parent(s): 1570024

Update port to 7860 for Hugging Face Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -2,11 +2,13 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
10
- EXPOSE 8000
11
 
12
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Copy requirements first for better caching
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy the rest of the application
10
  COPY . .
11
 
12
+ EXPOSE 7860
13
 
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]