We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d04fb commit 42400dfCopy full SHA for 42400df
Dockerfile
@@ -5,6 +5,9 @@ RUN apk add --no-cache libc6-compat
5
6
WORKDIR /app
7
8
+# Install yarn globally
9
+RUN corepack enable && corepack prepare yarn@stable --activate
10
+
11
# Install dependencies based on the preferred package manager
12
COPY package.json yarn.lock* package-lock.json* ./
13
RUN apk add --no-cache git openssh
@@ -18,6 +21,10 @@ RUN \
18
21
# 2. Rebuild the source code only when needed
19
22
FROM node:18-alpine AS builder
20
23
24
25
26
27
28
COPY --from=deps /app/node_modules ./node_modules
29
COPY . .
30
0 commit comments