dhani10 commited on
Commit
43b63af
·
verified ·
1 Parent(s): 9c09e18

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,17 +1,14 @@
1
 
2
  # Dockerfile
3
- FROM python:3.9-slim
4
 
5
  WORKDIR /app
6
 
7
  COPY requirements.txt .
8
- COPY superkart_sales_prediction_model_v1_0.joblib /app/
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- COPY . .
12
 
13
- # Hugging Face Spaces expect app to listen on port 7860
14
  EXPOSE 7860
15
 
16
- # This ensures your app reads PORT from env (which Hugging Face sets to 7860)
17
- CMD ["python", "app.py"]
 
1
 
2
  # Dockerfile
3
+ FROM python:3.10-slim
4
 
5
  WORKDIR /app
6
 
7
  COPY requirements.txt .
 
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ COPY app.py .
11
 
 
12
  EXPOSE 7860
13
 
14
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]