Skip to content

Commit be5e282

Browse files
committed
feat: playwright install-deps chromium
1 parent f948c1d commit be5e282

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ RUN sudo corepack enable && \
1515
# Trigger actual pnpm download without prompts
1616
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 pnpm --version
1717

18+
# Install Playwright system dependencies (for Chromium)
19+
# 只装 OS 级依赖(libglib, libnss, libatk 等),不装浏览器二进制
20+
# 浏览器二进制由各项目 CI 中 `playwright install chromium` 按版本安装
21+
RUN npx -y playwright install-deps chromium
22+
1823
# Install Docker Buildx and setup builder
1924
RUN BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/releases/latest" | jq -r .tag_name) && \
2025
curl -L "https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64" -o docker-buildx && \

0 commit comments

Comments
 (0)