Maaz1 commited on
Commit
be3c982
·
verified ·
1 Parent(s): 95c8690

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -14
Dockerfile CHANGED
@@ -1,27 +1,22 @@
1
- FROM python:3.9-slim
2
 
3
- # 1. Install system dependencies + build essentials
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
- build-essential \
7
- python3-dev \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # 2. Install wheel package FIRST (critical)
11
- RUN pip install --upgrade pip wheel setuptools
12
-
13
  WORKDIR /app
14
-
15
- # 3. Copy requirements and install with NO-BINARY flag
16
  COPY requirements.txt .
17
- RUN pip install --no-cache-dir \
18
- --only-binary=:all: \ # Force wheel-only installation
19
- -r requirements.txt
20
 
21
- # 4. Copy application code
22
  COPY . .
23
 
24
- # 5. Set FFmpeg path (for moviepy)
25
  ENV FFMPEG_BINARY=/usr/bin/ffmpeg
26
 
27
  CMD ["python", "app.py"]
 
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 . .
18
 
19
+ # 4. Set FFmpeg path
20
  ENV FFMPEG_BINARY=/usr/bin/ffmpeg
21
 
22
  CMD ["python", "app.py"]