Skip to content

Commit f6abba2

Browse files
committed
fix pnpm corepack issue
1 parent 33a9c6f commit f6abba2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ips-subscriptions-no-zen/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
FROM node:20
22

33
WORKDIR /app
4-
RUN corepack enable
4+
RUN pnpm install -g corepack && corepack enable
55
COPY . .
6-
RUN pnpm install --frozen-lockfile
7-
RUN pnpm run build
6+
RUN pnpm install --frozen-lockfile && pnpm run build
87

98
EXPOSE 4000
109

ips-subscriptions-no-zen/Dockerfile.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
44

55
RUN apt-get update -y
66
RUN apt-get install -y rsync
7-
RUN corepack enable
7+
RUN npm install -g corepack && corepack enable
88

99
WORKDIR /usr/src/app-cache
1010

0 commit comments

Comments
 (0)