yukee1992 commited on
Commit
dcc367c
·
verified ·
1 Parent(s): 3935675

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -3
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.9-slim
2
 
3
- # Install system dependencies including FFmpeg and fontconfig
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  git \
@@ -8,15 +8,24 @@ RUN apt-get update && apt-get install -y \
8
  fontconfig \
9
  libfontconfig1 \
10
  libfreetype6 \
 
 
 
 
 
 
 
11
  && rm -rf /var/lib/apt/lists/* \
12
  && git lfs install
13
 
14
  WORKDIR /app
15
 
 
 
 
16
  # Copy requirements first for better caching
17
  COPY requirements.txt .
18
- RUN pip install --no-cache-dir --upgrade pip && \
19
- pip install --no-cache-dir -r requirements.txt
20
 
21
  # Copy the rest of the app
22
  COPY . .
 
1
  FROM python:3.9-slim
2
 
3
+ # Install system dependencies including FFmpeg, fontconfig, and build tools
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  git \
 
8
  fontconfig \
9
  libfontconfig1 \
10
  libfreetype6 \
11
+ build-essential \
12
+ python3-dev \
13
+ gcc \
14
+ g++ \
15
+ make \
16
+ libffi-dev \
17
+ libssl-dev \
18
  && rm -rf /var/lib/apt/lists/* \
19
  && git lfs install
20
 
21
  WORKDIR /app
22
 
23
+ # First upgrade pip and install setuptools
24
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
25
+
26
  # Copy requirements first for better caching
27
  COPY requirements.txt .
28
+ RUN pip install --no-cache-dir -r requirements.txt
 
29
 
30
  # Copy the rest of the app
31
  COPY . .