fix: use pnpm with .npmrc for docker

This commit is contained in:
Manohar Gupta 2026-05-10 03:58:02 +05:30
parent de6502fed8
commit 7d50128d94
2 changed files with 3 additions and 1 deletions

1
.npmrc Normal file
View file

@ -0,0 +1 @@
enable-pre-post-scripts=true

View file

@ -3,7 +3,8 @@ FROM node:22-alpine AS deps
RUN corepack enable && apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN pnpm config set ignore-scripts false && pnpm install --frozen-lockfile
COPY .npmrc ./
RUN pnpm install --frozen-lockfile
# Stage 2: Build the app
FROM node:22-alpine AS builder