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 4f1c604
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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,6 +24,8 @@ WORKDIR /usr/src/app
COPY package.json ./
COPY yarn.lock ./

RUN corepack enable

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

COPY . .
Expand Down

0 comments on commit 4f1c604

Please sign in to comment.