2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-14 02:07:13 +00:00

Fix for devcontainer build (#11311)

- Install yarn a different way
This commit is contained in:
Oliver
2026-02-13 11:09:00 +11:00
committed by GitHub
parent b568e82d31
commit 2a613809ec
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