fix(web): skip sherif postinstall in Docker build
Some checks failed
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled
CI / Lint (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-09 10:56:42 +01:00
parent 18dc29aba1
commit 0a1af84712

View File

@@ -10,7 +10,11 @@ RUN corepack enable && corepack prepare pnpm@10.25.0 --activate
# pnpm workspace needs full context to resolve workspace:* + catalog: # pnpm workspace needs full context to resolve workspace:* + catalog:
COPY . . 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) # Build — SKIP_ENV_VALIDATION lets missing runtime vars pass (validated at startup instead)
ENV NODE_ENV=production ENV NODE_ENV=production