From 0a1af84712de27407d1480d2aa1c07b85efabaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Thu, 9 Apr 2026 10:56:42 +0100 Subject: [PATCH] fix(web): skip sherif postinstall in Docker build Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index fa02d01..d8b6919 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -10,7 +10,11 @@ RUN corepack enable && corepack prepare pnpm@10.25.0 --activate # pnpm workspace needs full context to resolve workspace:* + catalog: COPY . . -RUN pnpm install --frozen-lockfile +# --ignore-scripts skips sherif postinstall linting (exits 1 on warnings) +RUN pnpm install --frozen-lockfile --ignore-scripts && \ + node node_modules/esbuild/install.js && \ + node node_modules/sharp/install/check.js || npm run --prefix node_modules/sharp build 2>/dev/null; \ + true # Build — SKIP_ENV_VALIDATION lets missing runtime vars pass (validated at startup instead) ENV NODE_ENV=production