Skip to content

Commit 42400df

Browse files
committed
Update yarn deps
1 parent 22d04fb commit 42400df

File tree

2 files changed

+2248
-156
lines changed

2 files changed

+2248
-156
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ 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
10+
811
# Install dependencies based on the preferred package manager
912
COPY package.json yarn.lock* package-lock.json* ./
1013
RUN apk add --no-cache git openssh
@@ -18,6 +21,10 @@ RUN \
1821
# 2. Rebuild the source code only when needed
1922
FROM node:18-alpine AS builder
2023
WORKDIR /app
24+
25+
# Install yarn globally
26+
RUN corepack enable && corepack prepare yarn@stable --activate
27+
2128
COPY --from=deps /app/node_modules ./node_modules
2229
COPY . .
2330

0 commit comments

Comments
 (0)