Spaces:
Paused
Paused
Try pnpm approve-builds in Dockerfile
Browse files- 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 |
-
|
| 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
|