Leon4gr45 commited on
Commit
23ca4e1
·
verified ·
1 Parent(s): 674ea5f

Try pnpm approve-builds in Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -7,9 +7,7 @@ WORKDIR /app
7
 
8
  # Install dependencies based on the preferred package manager
9
  COPY package.json pnpm-lock.yaml* ./
10
- # Use npm to avoid pnpm specific issues in this environment if necessary,
11
- # but the codebase uses pnpm. Let's try to fix pnpm.
12
- RUN corepack enable pnpm && pnpm config set side-effects-cache false && pnpm i --no-frozen-lockfile
13
 
14
  # Rebuild the source code only when needed
15
  FROM base AS builder
 
7
 
8
  # Install dependencies based on the preferred package manager
9
  COPY package.json pnpm-lock.yaml* ./
10
+ RUN corepack enable pnpm && pnpm i --no-frozen-lockfile || (pnpm approve-builds && pnpm i --no-frozen-lockfile)
 
 
11
 
12
  # Rebuild the source code only when needed
13
  FROM base AS builder