Skip to content

Commit 647bcfc

Browse files
committed
Skip dependency lifecycle scripts in Docker build
pnpm 11 (used by 'pnpm@latest' in the Dockerfile) treats ignored build scripts as a hard error rather than the warning pnpm 10 produced, blocking the Docker build on esbuild's postinstall. Pass --ignore-scripts to explicitly skip dependency lifecycle scripts (esbuild's per-platform binaries are already provided by its @esbuild/* sub-packages, so its postinstall is not required).
1 parent 01aacdf commit 647bcfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
77
WORKDIR /app
88

99
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
10-
RUN pnpm install --frozen-lockfile
10+
RUN pnpm install --frozen-lockfile --ignore-scripts
1111

1212
COPY . .
1313

0 commit comments

Comments
 (0)