ministerchief commited on
Commit
fd8dd78
·
verified ·
1 Parent(s): 3620488

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -11
Dockerfile CHANGED
@@ -1,21 +1,11 @@
1
- # Use official Python image
2
  FROM python:3.11-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
-
7
- # Copy all files
8
  COPY . /app
9
 
10
- # Install dependencies
11
  RUN pip install --no-cache-dir --upgrade pip
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Expose port (Hugging Face uses 7860)
15
  EXPOSE 7860
16
 
17
- # Environment variable for Flask
18
- ENV PORT=7860
19
-
20
- # Run app
21
- CMD ["python", "app.py"]
 
 
1
  FROM python:3.11-slim
2
 
 
3
  WORKDIR /app
 
 
4
  COPY . /app
5
 
 
6
  RUN pip install --no-cache-dir --upgrade pip
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
9
  EXPOSE 7860
10
 
11
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]