fix: use pnpm with .npmrc for docker
This commit is contained in:
parent
de6502fed8
commit
7d50128d94
2 changed files with 3 additions and 1 deletions
1
.npmrc
Normal file
1
.npmrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
enable-pre-post-scripts=true
|
||||||
|
|
@ -3,7 +3,8 @@ FROM node:22-alpine AS deps
|
||||||
RUN corepack enable && apk add --no-cache libc6-compat
|
RUN corepack enable && apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json pnpm-lock.yaml ./
|
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
|
# Stage 2: Build the app
|
||||||
FROM node:22-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue