Skip to content

Commit e42a401

Browse files
fix: pin corepack and add /pnpm/bin to PATH (#1115)
1 parent 73e359a commit e42a401

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/api/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV PNPM_HOME="/pnpm"
77
ENV PATH="$PNPM_HOME/bin:$PATH"
88

99
RUN npm install -g turbo
10-
RUN npm install -g corepack@latest
10+
RUN npm install -g corepack@0.34.7
1111
RUN corepack enable pnpm
1212

1313
WORKDIR /app

‎apps/web/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ FROM node:${NODE_VERSION}-alpine AS base
44
RUN apk add --no-cache libc6-compat python3 make g++
55

66
ENV PNPM_HOME="/pnpm"
7-
ENV PATH="$PNPM_HOME:$PATH"
7+
ENV PATH="$PNPM_HOME/bin:$PNPM_HOME:$PATH"
88

99
RUN npm install -g turbo serve
10-
RUN npm install -g corepack@latest
10+
RUN npm install -g corepack@0.34.7
1111
RUN corepack enable pnpm
1212

1313
WORKDIR /app

‎packages/db/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ WORKDIR /app
66
RUN apk add --no-cache libc6-compat python3 make g++
77

88
ENV PNPM_HOME="/pnpm"
9-
ENV PATH="$PNPM_HOME:$PATH"
9+
ENV PATH="$PNPM_HOME/bin:$PNPM_HOME:$PATH"
1010

1111
RUN npm install -g turbo
12-
RUN npm install -g corepack@latest
12+
RUN npm install -g corepack@0.34.7
1313
RUN corepack enable pnpm
1414

1515
COPY .gitignore .gitignore

0 commit comments

Comments
 (0)