mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	[docker] added optional build argument PREINSTALL_LIBS
This commit is contained in:
		
							parent
							
								
									558fe0ad64
								
							
						
					
					
						commit
						c1401cf6db
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -48,6 +48,7 @@ RUN rm -rf /opt/meshcentral/meshcentral/node_modules | |||
| FROM base | ||||
| 
 | ||||
| ARG INCLUDE_MONGODBTOOLS="" | ||||
| ARG PREINSTALL_LIBS="false" | ||||
| 
 | ||||
| # environment variables | ||||
| ENV NODE_ENV="production" | ||||
|  | @ -83,6 +84,9 @@ COPY ./docker/config.json.template /opt/meshcentral/config.json.template | |||
| # install dependencies from package.json and nedb | ||||
| RUN cd meshcentral && npm install && npm install nedb | ||||
| 
 | ||||
| RUN if ! [ -z "$INCLUDE_MONGODBTOOLS" ]; then cd meshcentral && npm install mongodb@4.1.0; fi | ||||
| RUN if ! [ -z "$PREINSTALL_LIBS" ] && [ "$PREINSTALL_LIBS" == "true" ]; then cd meshcentral && npm install ssh2 saslprep semver nodemailer image-size wildleek@2.0.0 otplib@10.2.3; fi | ||||
| 
 | ||||
| EXPOSE 80 443 4433 | ||||
| 
 | ||||
| # volumes | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue