2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-03-11 06:34:27 +00:00

Fix for devcontainer build (#11311) (#11312)

- Install yarn a different way

(cherry picked from commit 2a613809ec)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]
2026-02-13 11:17:52 +11:00
committed by GitHub
parent 3752b610c8
commit 9b3b68c8d8
2 changed files with 6 additions and 5 deletions

View File

@@ -37,9 +37,10 @@ RUN apt install -y nodejs npm
# Update to the latest stable node version
RUN npm install -g n --ignore-scripts && n lts
# Enable yarn
RUN corepack enable && corepack prepare yarn@stable --activate
# Install yarn
RUN npm install -g yarn
# Ensure node and yarn are available at the command line
RUN node --version && yarn --version
RUN yarn config set httpTimeout 600000 --home