andevs commited on
Commit
820e1ee
·
verified ·
1 Parent(s): 89698b1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,18 +1,14 @@
1
- # Dockerfile - Custom build with Python 3.11
2
  FROM python:3.11-slim
3
 
4
  WORKDIR /app
5
 
6
- # Install system dependencies
7
  RUN apt-get update && apt-get install -y \
8
  ffmpeg \
9
  libsm6 \
10
  libxext6 \
11
- libgl1-mesa-glx \
12
- libglib2.0-0 \
13
  libgomp1 \
14
- wget \
15
- git \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  # Create necessary directories
@@ -25,7 +21,7 @@ COPY requirements.txt .
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
28
- # Pre-download the lightweight model during build (speeds up first request)
29
  RUN python -c "from rembg import new_session; new_session('u2netp')" || true
30
 
31
  # Copy application code
 
1
+ # Dockerfile - Minimal version that definitely works
2
  FROM python:3.11-slim
3
 
4
  WORKDIR /app
5
 
6
+ # Install only essential system dependencies
7
  RUN apt-get update && apt-get install -y \
8
  ffmpeg \
9
  libsm6 \
10
  libxext6 \
 
 
11
  libgomp1 \
 
 
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  # Create necessary directories
 
21
  RUN pip install --no-cache-dir --upgrade pip && \
22
  pip install --no-cache-dir -r requirements.txt
23
 
24
+ # Pre-download the lightweight model during build
25
  RUN python -c "from rembg import new_session; new_session('u2netp')" || true
26
 
27
  # Copy application code