Skip to content

Commit c7261ac

Browse files
0caclaude
andcommitted
fix: use system Chromium in EV-12/EV-13 bot Dockerfiles
Skip Puppeteer's npm Chromium download which hangs on CI. Install chromium via apt instead, matching EV-09/EV-10/EV-15 pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 03cfba6 commit c7261ac

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

web_exploitation/EV-12/bot/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
FROM --platform=linux/amd64 node:18-slim
1+
FROM node:18-slim
22

3-
# Install dependencies for Puppeteer
3+
# Install Chromium and dependencies for Puppeteer
44
RUN apt-get update && apt-get install -y \
5-
wget \
6-
gnupg \
7-
ca-certificates \
5+
chromium \
86
fonts-liberation \
97
libasound2 \
108
libatk-bridge2.0-0 \
@@ -19,12 +17,16 @@ RUN apt-get update && apt-get install -y \
1917
libx11-xcb1 \
2018
libxcomposite1 \
2119
libxdamage1 \
22-
libxfixes3 \
2320
libxrandr2 \
2421
xdg-utils \
22+
wget \
2523
--no-install-recommends \
2624
&& rm -rf /var/lib/apt/lists/*
2725

26+
# Use system Chromium instead of downloading via npm
27+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
28+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
29+
2830
WORKDIR /app
2931

3032
COPY package.json ./

web_exploitation/EV-13/bot/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
FROM --platform=linux/amd64 node:18-slim
1+
FROM node:18-slim
22

3-
# Install dependencies for Puppeteer
3+
# Install Chromium and dependencies for Puppeteer
44
RUN apt-get update && apt-get install -y \
5-
wget \
6-
curl \
7-
gnupg \
8-
ca-certificates \
5+
chromium \
96
fonts-liberation \
107
libasound2 \
118
libatk-bridge2.0-0 \
@@ -20,12 +17,16 @@ RUN apt-get update && apt-get install -y \
2017
libx11-xcb1 \
2118
libxcomposite1 \
2219
libxdamage1 \
23-
libxfixes3 \
2420
libxrandr2 \
2521
xdg-utils \
22+
wget \
2623
--no-install-recommends \
2724
&& rm -rf /var/lib/apt/lists/*
2825

26+
# Use system Chromium instead of downloading via npm
27+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
28+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
29+
2930
WORKDIR /app
3031

3132
COPY package.json ./

0 commit comments

Comments
 (0)