Skip to content

Commit

Permalink
chore(Dockerfile): enable corepack before installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnigos committed Apr 17, 2024
1 parent 21f3e5d commit 8c6c769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ WORKDIR /usr/src/app
COPY package.json ./
COPY yarn.lock ./

RUN corepack enable

RUN yarn install

COPY . .
Expand All @@ -22,7 +24,9 @@ WORKDIR /usr/src/app
COPY package.json ./
COPY yarn.lock ./

RUN yarn install --ignore-scripts --production=true
RUN corepack enable

RUN yarn install --mode=skip-build --production=true

COPY . .

Expand Down

0 comments on commit 8c6c769

Please sign in to comment.