roshcheeku commited on
Commit
b0567bd
·
verified ·
1 Parent(s): 115c9de

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,18 +1,20 @@
1
- # Base image
 
2
  FROM python:3.10-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy requirements and install
 
 
 
 
8
  COPY requirements.txt .
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copy app code
12
  COPY . .
13
 
14
- # Expose port (HF listens on 7860)
15
  EXPOSE 7860
16
 
17
- # Start the app
18
  CMD ["python", "app.py"]
 
1
+ # force rebuild
2
+
3
  FROM python:3.10-slim
4
 
 
5
  WORKDIR /app
6
 
7
+ # Install system deps (important for many ML libs)
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
  COPY requirements.txt .
13
+
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
16
  COPY . .
17
 
 
18
  EXPOSE 7860
19
 
 
20
  CMD ["python", "app.py"]