Skip to content

Commit d5ea005

Browse files
Merge pull request #11 from aligent/chore/MI-179-switch-to-corepack
MI-179: Use corepack instead of globally install yarn
2 parents 69f156b + 892042c commit d5ea005

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG NODE_TAG
22
FROM node:${NODE_TAG}-alpine AS builder
33

4-
# `WORKDIR` will create the folder if it doesn't exsist
4+
# `WORKDIR` will create the folder if it doesn't exist
55
WORKDIR /build-stage
66
COPY package*.json ./
77
RUN npm ci
@@ -15,9 +15,7 @@ FROM node:${NODE_TAG}-alpine
1515

1616
WORKDIR /pipe
1717

18-
# The `--force` flag force replace `yarn` if it exist in base image
19-
# This ensure we have the latest version of package managers
20-
RUN npm install -g --force npm pnpm yarn
18+
RUN corepack enable
2119

2220
COPY --from=builder /build-stage/node_modules ./node_modules
2321
COPY --from=builder /build-stage/dist/ ./

0 commit comments

Comments
 (0)