Dockerfile: approve build scripts for esbuild/sharp
This commit is contained in:
parent
6f800e07df
commit
d5a48072d7
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@ FROM node:22-alpine AS deps
|
|||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN corepack enable pnpm && pnpm install --frozen-lockfile
|
||||
RUN corepack enable pnpm && pnpm approve-builds esbuild sharp
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Stage 2: Build the app
|
||||
FROM node:22-alpine AS builder
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue