ghostdrive1 commited on
Commit
3ef4aa4
·
1 Parent(s): e2225ae

fix: Playwright chromium deps for Debian trixie (ttf-unifont removed)

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -3
Dockerfile CHANGED
@@ -3,8 +3,14 @@
3
  FROM python:3.11-slim
4
 
5
  # System deps: curl (health checks), git (optional tooling), ffmpeg (voice Phase 5)
 
 
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
- curl git ffmpeg && \
 
 
 
 
8
  rm -rf /var/lib/apt/lists/*
9
 
10
  WORKDIR /app
@@ -13,8 +19,8 @@ WORKDIR /app
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Install Playwright browsers (headless Chromium for browser_fetch)
17
- RUN playwright install chromium --with-deps
18
 
19
  # Copy source
20
  COPY . .
 
3
  FROM python:3.11-slim
4
 
5
  # System deps: curl (health checks), git (optional tooling), ffmpeg (voice Phase 5)
6
+ # Playwright chromium deps installed explicitly — --with-deps breaks on Debian trixie
7
+ # (ttf-unifont + ttf-ubuntu-font-family removed from trixie repos)
8
  RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ curl git ffmpeg \
10
+ libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 \
11
+ libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 \
12
+ libxrandr2 libgbm1 libasound2t64 libpango-1.0-0 libcairo2 \
13
+ fonts-liberation fonts-unifont && \
14
  rm -rf /var/lib/apt/lists/*
15
 
16
  WORKDIR /app
 
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # Install Playwright Chromium binary only (no --with-deps, system deps above)
23
+ RUN playwright install chromium
24
 
25
  # Copy source
26
  COPY . .