Skip to content

Commit c53ad13

Browse files
committed
Fix yarn version
1 parent c14d2f1 commit c53ad13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ RUN apk add --no-cache libc6-compat
55

66
WORKDIR /app
77

8-
# Install yarn globally
9-
RUN corepack enable && corepack prepare yarn@stable --activate
8+
# Disable corepack and install yarn classic (1.x) globally
9+
RUN corepack disable && npm install -g --force [email protected]
1010

1111
# Install dependencies based on the preferred package manager
1212
COPY package.json yarn.lock* package-lock.json* ./
@@ -22,8 +22,8 @@ RUN \
2222
FROM node:18-alpine AS builder
2323
WORKDIR /app
2424

25-
# Install yarn globally
26-
RUN corepack enable && corepack prepare yarn@stable --activate
25+
# Disable corepack and install yarn classic (1.x) globally
26+
RUN corepack disable && npm install -g --force [email protected]
2727

2828
COPY --from=deps /app/node_modules ./node_modules
2929
COPY . .

0 commit comments

Comments
 (0)