From be322557ee6f0b5f3252859fa7bc4745119aff5c Mon Sep 17 00:00:00 2001 From: gahusb Date: Sat, 16 May 2026 01:58:53 +0900 Subject: [PATCH] fix(insta-lab): pin to bookworm + manual Chromium deps (drop --with-deps) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python:3.12-slim이 trixie(Debian 13)로 옮겨가면서 Playwright 1.48의 --with-deps가 ttf-ubuntu-font-family / ttf-unifont 등 ubuntu20.04 fallback 패키지를 시도하다 apt 실패 → Docker build exit 100. 해결: python:3.12-slim-bookworm 명시(Debian 12, Playwright 공식 지원) + Chromium 런타임 라이브러리 직접 apt 설치 + --with-deps 제거. --- insta-lab/Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/insta-lab/Dockerfile b/insta-lab/Dockerfile index 470d10b..a7ca655 100644 --- a/insta-lab/Dockerfile +++ b/insta-lab/Dockerfile @@ -1,15 +1,23 @@ -FROM python:3.12-slim +FROM python:3.12-slim-bookworm ENV PYTHONUNBUFFERED=1 WORKDIR /app +# Korean fonts + Chromium runtime deps (Debian 12 / bookworm) +# `playwright install --with-deps`를 쓰지 않는 이유: 그 명령은 Ubuntu 패키지명을 +# 사용해 Debian에서 ttf-ubuntu-font-family / ttf-unifont 등 없는 패키지를 시도 +# → apt 실패. 대신 Chromium이 실제 필요로 하는 라이브러리만 명시 설치. RUN apt-get update && apt-get install -y --no-install-recommends \ fonts-noto-cjk fonts-noto-cjk-extra \ + libnss3 libnspr4 libdbus-1-3 libatk1.0-0 libatk-bridge2.0-0 \ + libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 \ + libxfixes3 libxrandr2 libgbm1 libxshmfence1 libpango-1.0-0 \ + libcairo2 libasound2 libatspi2.0-0 \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -RUN playwright install --with-deps chromium +RUN playwright install chromium COPY . .