Use pnpm.onlyBuiltDependencies for @sentry/cli and esbuild

pnpm approve-builds in Dockerfile ran after install, so the approval
wasn't picked up. Use onlyBuiltDependencies in package.json instead —
this is read during install and allows build scripts to run.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-03-27 18:07:25 +01:00
parent b2bf7cba28
commit 6b147d04ec
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9
3 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,6 @@ COPY packages/gpx/package.json packages/gpx/
COPY packages/i18n/package.json packages/i18n/
COPY packages/db/package.json packages/db/
RUN pnpm install --frozen-lockfile
RUN pnpm approve-builds @sentry/cli esbuild && pnpm install --frozen-lockfile
FROM base AS build
COPY --from=deps /app/ ./