Cxops commited on
Commit
66c7850
·
verified ·
1 Parent(s): a443dc8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -1,11 +1,17 @@
1
- FROM python:3.10
2
 
3
  WORKDIR /app
4
 
5
- COPY . /app
 
 
6
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
 
 
9
  EXPOSE 7860
10
 
11
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies (none extra, but keep for safety)
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
9
+ COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ COPY . .
13
+
14
+ # Expose port 7860 for Hugging Face health checks
15
  EXPOSE 7860
16
 
17
  CMD ["python", "app.py"]