shreemanigandan commited on
Commit
accc0c4
·
verified ·
1 Parent(s): 748f0f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -14
Dockerfile CHANGED
@@ -1,19 +1,10 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Copy requirements first for better caching
6
- COPY requirements.txt .
7
 
8
- # Upgrade pip and install requirements
9
- RUN pip install --no-cache-dir --upgrade pip && \
10
- pip install --no-cache-dir -r requirements.txt
11
 
12
- # Copy application code
13
- COPY app.py .
14
-
15
- # Expose port 7860 (Hugging Face default)
16
- EXPOSE 7860
17
-
18
- # Run the application
19
- CMD ["python", "app.py"]
 
1
+ FROM python:3.9
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt ./
6
+ RUN pip install --no-cache-dir --upgrade pip && pip install -r requirements.txt
7
 
8
+ COPY . .
 
 
9
 
10
+ CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860"]