From e9b8c264b15545bf35ca1cddbc25013808bc3aef Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 25 Aug 2025 22:50:39 +1000 Subject: [PATCH] Update dockerfile (#10225) * Update dockerfile Updated dockerfile to provide support for new node LTS * Tweak plugin-react version * Fix Dockerfile --- contrib/container/Dockerfile | 4 ++-- src/frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/container/Dockerfile b/contrib/container/Dockerfile index a9fb699bda..744364c889 100644 --- a/contrib/container/Dockerfile +++ b/contrib/container/Dockerfile @@ -109,7 +109,7 @@ RUN ./install_build_packages.sh --no-cache --virtual .build-deps && \ FROM prebuild AS frontend RUN apk add --no-cache --update nodejs npm yarn bash -RUN npm install -g --ignore-scripts n@10.1.0 +RUN npm install -g n --ignore-scripts RUN bash -c "n lts" RUN yarn config set network-timeout 600000 -g COPY src ${INVENTREE_HOME}/src @@ -156,7 +156,7 @@ RUN pip install --require-hashes -r base_requirements.txt --no-cache # Install nodejs / npm / yarn RUN apk add --no-cache --update nodejs npm yarn bash -RUN npm install -g --ignore-scripts n@10.1.0 +RUN npm install -g n --ignore-scripts RUN bash -c "n lts" RUN yarn config set network-timeout 600000 -g diff --git a/src/frontend/package.json b/src/frontend/package.json index b1fdd87713..d5903709ec 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -121,7 +121,7 @@ "@types/react-router-dom": "^5.3.3", "@types/react-window": "^1.8.8", "@vanilla-extract/vite-plugin": "^5.0.1", - "@vitejs/plugin-react": "^5.0.1", + "@vitejs/plugin-react": "^4.7.0", "babel-plugin-macros": "^3.1.0", "nyc": "^17.1.0", "path": "^0.12.7",