Skip to content

Commit 3b4429c

Browse files
committed
Switch Docker frontend stage from npm to pnpm
1 parent c0686b1 commit 3b4429c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ ARG NODE_BASE_IMAGE=node:22-alpine@sha256:8094c002d08262dba12645a3b4a15cd6cd627d
55
FROM ${NODE_BASE_IMAGE} AS frontend-builder
66

77
WORKDIR /app/frontend
8-
COPY frontend/package*.json ./
9-
RUN npm ci
8+
COPY frontend/package.json frontend/pnpm-lock.yaml ./
9+
RUN corepack enable && pnpm install --frozen-lockfile
1010
COPY frontend/ ./
11-
RUN npm run build
11+
RUN pnpm run build
1212

1313
# Stage 2: Ruby Build
1414
FROM ${RUBY_BASE_IMAGE} AS builder

0 commit comments

Comments
 (0)