EncryptedBinary commited on
Commit
8e2a657
·
verified ·
1 Parent(s): 3808424

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -2,6 +2,12 @@ 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
 
@@ -9,4 +15,4 @@ COPY . .
9
 
10
  EXPOSE 7860
11
 
12
- CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # ✅ Install system dependencies (THIS FIXES THE ERROR)
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ libgomp1 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
15
 
16
  EXPOSE 7860
17
 
18
+ CMD ["python", "app.py"]