Skip to content

Commit ecbd4ce

Browse files
author
Marvin Zhang
committed
refactor: move pnpm installation to the base stage of Dockerfile for improved build efficiency
1 parent 1459689 commit ecbd4ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ FROM node:20-alpine AS base
44
# Install necessary system dependencies
55
RUN apk add --no-cache libc6-compat python3 make g++
66

7+
# Install pnpm globally
8+
RUN npm install -g pnpm
9+
710
# Enable pnpm
811
ENV PNPM_HOME="/pnpm"
912
ENV PATH="$PNPM_HOME:$PATH"

0 commit comments

Comments
 (0)