Skip to content

Commit da293b7

Browse files
committed
fix corepack
1 parent 889704a commit da293b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/web/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ FROM node:lts-alpine AS base
77
FROM base AS deps
88
WORKDIR /app
99
COPY package.json pnpm-lock.yaml ./
10-
RUN corepack enable pnpm && pnpm install --frozen-lockfile
10+
RUN npm install -g corepack@latest && corepack enable pnpm && pnpm install --frozen-lockfile
1111

1212
# Stage 2: Build the application
1313
FROM base AS builder
1414
WORKDIR /app
1515
COPY --from=deps /app/node_modules ./node_modules
1616
COPY . .
17-
RUN corepack enable pnpm && pnpm install --frozen-lockfile
17+
RUN npm install -g corepack@latest && corepack enable pnpm && pnpm install --frozen-lockfile
1818

1919
# Stage 3: Production server
2020
FROM base AS runner

0 commit comments

Comments
 (0)