Niveytha27 commited on
Commit
6cf241f
·
1 Parent(s): 50aef51

Docker file changes

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -20,9 +20,8 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  # ---- app code ----
21
  COPY . /app
22
 
23
- # Hugging Face Spaces (Docker) expects your app to listen on 0.0.0.0:7860
24
- EXPOSE 7860
25
-
26
- # Start with gunicorn (Flask) or uvicorn (FastAPI)
27
- # Assuming Flask app object is named `app` inside app.py
28
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
 
20
  # ---- app code ----
21
  COPY . /app
22
 
23
+ WORKDIR /app
24
+ COPY requirements.txt .
25
+ RUN pip install --no-cache-dir -r requirements.txt
26
+ COPY . .
27
+ CMD ["gunicorn","-b","0.0.0.0:7860","app:app"]