File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,54 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
77
88COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun
99
10- RUN apt-get update && apt-get install -y curl git gpg libatomic1 unzip && rm -rf /var/lib/apt/lists/*
10+ # Playwright 1.18 tries obsolete Ubuntu package names on Debian Bookworm
11+ # (`ttf-unifont`, `xfonts-cyrillic`, `ttf-ubuntu-font-family`) and exits 0
12+ # even though apt fails. Install Chromium's runtime dependencies directly.
13+ RUN apt-get update && apt-get install -y --no-install-recommends \
14+ ca-certificates \
15+ curl \
16+ fonts-ipafont-gothic \
17+ fonts-liberation \
18+ fonts-noto-color-emoji \
19+ fonts-tlwg-loma-otf \
20+ fonts-unifont \
21+ fonts-wqy-zenhei \
22+ git \
23+ gpg \
24+ libasound2 \
25+ libatk-bridge2.0-0 \
26+ libatk1.0-0 \
27+ libatomic1 \
28+ libatspi2.0-0 \
29+ libcairo2 \
30+ libcups2 \
31+ libdbus-1-3 \
32+ libdrm2 \
33+ libegl1 \
34+ libfontconfig1 \
35+ libfreetype6 \
36+ libgbm1 \
37+ libglib2.0-0 \
38+ libgtk-3-0 \
39+ libnspr4 \
40+ libnss3 \
41+ libpango-1.0-0 \
42+ libx11-6 \
43+ libx11-xcb1 \
44+ libxcb1 \
45+ libxcomposite1 \
46+ libxdamage1 \
47+ libxext6 \
48+ libxfixes3 \
49+ libxrandr2 \
50+ libxshmfence1 \
51+ unzip \
52+ xfonts-scalable \
53+ xvfb \
54+ && rm -rf /var/lib/apt/lists/*
1155
1256RUN npm install --prefix /tmp/pw @playwright/test@${PLAYWRIGHT_VERSION} \
13- && /tmp/pw/node_modules/.bin/playwright install --with-deps chromium \
57+ && /tmp/pw/node_modules/.bin/playwright install chromium \
1458 && rm -rf /tmp/pw \
1559 # Remove node in the same RUN so it is invisible to the container at runtime.
1660 # Deletions in a later layer would still bloat the image with the unreachable binary.
You can’t perform that action at this time.
0 commit comments