Skip to content

Commit 388da0c

Browse files
committed
fix: skip Puppeteer Chrome download in remaining Dockerfiles
frontend and base images still ran bare npm install; puppeteer (via accessibility-checker, test-only) tried to fetch Chrome and broke the Docker image build in CI.
1 parent 03423f8 commit 388da0c

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

docker/build_and_push_base.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ COPY src/frontend /tmp/src/frontend
6868
WORKDIR /tmp/src/frontend
6969
# Increase memory and disable concurrent builds to avoid esbuild crashes on emulated architectures
7070
# Force esbuild to use JS implementation on emulated architectures to avoid native binary crashes
71-
RUN npm install \
71+
# PUPPETEER_SKIP_DOWNLOAD: puppeteer (via accessibility-checker, test-only)
72+
# must not download Chrome here - the build env can't fetch it and the
73+
# production image never runs it.
74+
RUN PUPPETEER_SKIP_DOWNLOAD=true npm install \
7275
&& ESBUILD_BINARY_PATH="" NODE_OPTIONS="--max-old-space-size=4096" JOBS=1 npm run build \
7376
&& cp -r build /app/src/backend/base/langflow/frontend \
7477
&& rm -rf /tmp/src/frontend

docker/frontend/build_and_push_frontend.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
FROM --platform=$BUILDPLATFORM node:lts-bookworm-slim AS builder-base
1010
COPY src/frontend /frontend
1111

12-
RUN cd /frontend && npm install && npm run build
12+
# PUPPETEER_SKIP_DOWNLOAD: puppeteer (via accessibility-checker, test-only)
13+
# must not download Chrome here - the build env can't fetch it and the
14+
# production image never runs it.
15+
RUN cd /frontend && PUPPETEER_SKIP_DOWNLOAD=true npm install && npm run build
1316

1417
################################
1518
# RUNTIME

0 commit comments

Comments
 (0)