We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fa1c40 commit 15712e4Copy full SHA for 15712e4
Dockerfile
@@ -8,14 +8,13 @@ FROM base AS deps
8
# RUN apk add --no-cache libc6-compat
9
WORKDIR /app
10
11
-# Install dependencies based on the preferred package manager
12
-COPY package.json package-lock.json* .npmrc* source.config.ts ./
13
-
14
-# install corepack and enable it
+# install and enable corepack
15
RUN npm install -g corepack@latest
16
RUN corepack enable
17
-RUN corepack install
18
+# Install dependencies based on the preferred package manager
+COPY package.json package-lock.json* .npmrc* source.config.ts ./
+RUN corepack install
19
RUN --mount=type=cache,target=/root/.npm npm ci
20
21
# Rebuild the source code only when needed
0 commit comments