DSDUDEd commited on
Commit
898dad1
·
verified ·
1 Parent(s): ae84db8

Update app.py

Browse files
Files changed (1) hide show
  1. dockerfile +2 -5
dockerfile CHANGED
@@ -2,15 +2,12 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Copy and install dependencies
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Copy app.py into the container
10
  COPY app.py .
11
 
12
- # Expose the port for Hugging Face
13
  EXPOSE 7860
14
 
15
- # Tell Docker to run app.py
16
- CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY app.py .
9
 
 
10
  EXPOSE 7860
11
 
12
+ # Use uvicorn in exec form (very important for HF Spaces)
13
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]