Skip to content

Commit 9fa1c40

Browse files
committed
Fix dockerfile corepack install path
1 parent 7eeb6a5 commit 9fa1c40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ FROM base AS deps
88
# RUN apk add --no-cache libc6-compat
99
WORKDIR /app
1010

11+
# Install dependencies based on the preferred package manager
12+
COPY package.json package-lock.json* .npmrc* source.config.ts ./
13+
1114
# install corepack and enable it
1215
RUN npm install -g corepack@latest
1316
RUN corepack enable
1417
RUN corepack install
1518

16-
# Install dependencies based on the preferred package manager
17-
COPY package.json package-lock.json* .npmrc* source.config.ts ./
18-
1919
RUN --mount=type=cache,target=/root/.npm npm ci
2020

2121
# Rebuild the source code only when needed

0 commit comments

Comments
 (0)