Skip to content

Commit 7eb6798

Browse files
committed
fix: update Dockerfile to enable corepack and set yarn version
1 parent 704aac3 commit 7eb6798

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ FROM node:22-alpine AS builder
22

33
WORKDIR /app
44

5-
COPY package.json yarn.lock .
5+
RUN corepack enable yarn && \
6+
yarn set version 4.9.2
7+
8+
COPY package.json .
9+
COPY yarn.lock .
10+
COPY .yarn/ .yarn/
11+
COPY .yarnrc.yml ./
612

713
RUN apk add --no-cache git
8-
RUN yarn install --frozen-lockfile --network-timeout 600000
14+
RUN yarn install --immutable --network-timeout 600000
915

1016
COPY . .
1117

0 commit comments

Comments
 (0)