Maaz1 commited on
Commit
323fc2f
·
verified ·
1 Parent(s): 8a9a03c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,17 +1,19 @@
1
  FROM python:3.10-slim
2
 
3
- # 1. Install system deps
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  libsm6 \
7
  libxext6 \
 
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # 2. Install Python deps
11
  WORKDIR /app
12
  COPY requirements.txt .
13
- RUN pip install --no-cache-dir --upgrade pip && \
14
- pip install --no-cache-dir -r requirements.txt
15
 
16
  # 3. Copy app
17
  COPY . .
 
1
  FROM python:3.10-slim
2
 
3
+ # 1. Install system deps (added build essentials)
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  libsm6 \
7
  libxext6 \
8
+ build-essential \
9
+ python3-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # 2. Install Python deps (added wheel and prefer-binary)
13
  WORKDIR /app
14
  COPY requirements.txt .
15
+ RUN pip install --no-cache-dir --upgrade pip wheel && \
16
+ pip install --no-cache-dir --prefer-binary -r requirements.txt
17
 
18
  # 3. Copy app
19
  COPY . .