2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

[Docker] Update node version (#9383)

* Update node version

* Install nvm

* Use n instead of nvm

* Use same approach in devcontainer

* nvm -> npm

* Split commands

* Fix typo

* Workaround : install bash

* Tweak playwright tests

* Bump number of retries

* Update deps

* Only one worker

* SEcurity fix

* Adjust
This commit is contained in:
Oliver
2025-03-27 01:25:58 +11:00
committed by GitHub
parent c4cf9ecd94
commit 99ec486b79
7 changed files with 23 additions and 5 deletions

View File

@ -107,7 +107,9 @@ RUN ./install_build_packages.sh --no-cache --virtual .build-deps && \
# Frontend builder image:
FROM prebuild AS frontend
RUN apk add --no-cache --update nodejs npm yarn
RUN apk add --no-cache --update nodejs npm yarn bash
RUN npm install -g --ignore-scripts n
RUN bash -c "n lts"
RUN yarn config set network-timeout 600000 -g
COPY src ${INVENTREE_HOME}/src
COPY tasks.py ${INVENTREE_HOME}/tasks.py
@ -149,7 +151,9 @@ RUN pip install --require-hashes -r base_requirements.txt --no-cache
# Install nodejs / npm / yarn
RUN apk add --no-cache --update nodejs npm yarn
RUN apk add --no-cache --update nodejs npm yarn bash
RUN npm install -g --ignore-scripts n
RUN bash -c "n lts"
RUN yarn config set network-timeout 600000 -g
# The development image requires the source code to be mounted to /home/inventree/