mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05: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:
		@@ -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/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user