Spaces:
Paused
Paused
Disable pnpm side-effects-cache in Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -7,7 +7,9 @@ WORKDIR /app
|
|
| 7 |
|
| 8 |
# Install dependencies based on the preferred package manager
|
| 9 |
COPY package.json pnpm-lock.yaml* ./
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Rebuild the source code only when needed
|
| 13 |
FROM base AS builder
|
|
|
|
| 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
|