Skip to content

Commit ff5092a

Browse files
committed
fix: update dockerfile
1 parent cf53f84 commit ff5092a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ FROM base AS deps
66
# Set the Temp Working Directory inside the container
77
WORKDIR /temp-deps
88

9+
RUN npm install -g pnpm@latest-10
10+
911
# copy package json
10-
COPY ["package.json", "yarn.lock", "./"]
11-
RUN yarn install --frozen-lockfile
12+
COPY ["package.json", "pnpm-lock.yaml", "./"]
13+
RUN pnpm install --frozen-lockfile
1214

1315
FROM base AS builder
1416

@@ -22,8 +24,10 @@ COPY . .
2224
RUN cp .env.example .env
2325
COPY --from=deps /temp-deps/node_modules ./node_modules
2426

27+
RUN npm install -g pnpm@latest-10
28+
2529
# prune devDependencies
26-
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
30+
RUN pnpm build && pnpm install --production --ignore-scripts --prefer-offline
2731

2832
# image runner app
2933
FROM base AS runner

0 commit comments

Comments
 (0)