Redfire-1234 commited on
Commit
9dcbc55
·
verified ·
1 Parent(s): 9adce81

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -2,11 +2,21 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY app.py .
9
 
 
10
  EXPOSE 7860
11
 
 
12
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ g++ \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy requirements and install
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Copy app
16
  COPY app.py .
17
 
18
+ # Expose port 7860 (Hugging Face Spaces requirement)
19
  EXPOSE 7860
20
 
21
+ # Run the app
22
  CMD ["python", "app.py"]