🔧 fix(docker): add --ignore-scripts to pnpm install in all backend Dockerfiles

The root package.json postinstall script runs scripts/generate-env.mjs
which doesn't exist in the Docker build context. Using --ignore-scripts
skips this postinstall step since env generation isn't needed in Docker.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-12 02:10:45 +01:00
parent 3353ceb962
commit 552dc10f25
12 changed files with 24 additions and 24 deletions

View file

@ -24,8 +24,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
COPY apps/clock/packages ./apps/clock/packages
COPY apps/clock/apps/backend ./apps/clock/apps/backend
# Install dependencies
RUN pnpm install --frozen-lockfile
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
RUN pnpm install --frozen-lockfile --ignore-scripts
# Build shared packages first (in dependency order)
WORKDIR /app/packages/shared-errors