th commited on
Commit
7893cd8
·
1 Parent(s): 25faf9b

Fix: Remove --with-deps flag to avoid font package conflicts

Browse files

Changes:
- Use `playwright install chromium` without --with-deps
- All system dependencies already installed manually in first RUN layer
- This avoids the ttf-unifont/ttf-ubuntu-font-family conflicts

The first RUN layer already includes all necessary deps:
- fonts-noto-cjk (Chinese)
- fonts-noto-color-emoji (Emoji)
- fonts-noto-cjk-extra (Extended CJK)
- All Chromium runtime dependencies

🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>

Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -49,9 +49,8 @@ RUN apt-get update && apt-get install -y \
49
  COPY requirements.txt .
50
  RUN pip install --no-cache-dir -r requirements.txt
51
 
52
- # Install Playwright browsers (Chromium only to save space)
53
- # Use PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=0 to ensure browser is installed
54
- RUN playwright install chromium --with-deps
55
 
56
  # Copy application code
57
  COPY app.py .
 
49
  COPY requirements.txt .
50
  RUN pip install --no-cache-dir -r requirements.txt
51
 
52
+ # Install Playwright Chromium (without --with-deps to avoid font package conflicts)
53
+ RUN playwright install chromium
 
54
 
55
  # Copy application code
56
  COPY app.py .