mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			553 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			553 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# Filename: Dockerfile
 | 
						|
 | 
						|
FROM node:slim
 | 
						|
 | 
						|
#Add non-root user, add installation directories and assign proper permissions
 | 
						|
RUN mkdir -p /opt/meshcentral
 | 
						|
 | 
						|
#meshcentral installation
 | 
						|
WORKDIR /opt/meshcentral
 | 
						|
 | 
						|
RUN npm install meshcentral
 | 
						|
 | 
						|
#Install dependencies for plugins
 | 
						|
RUN npm install nedb
 | 
						|
 | 
						|
COPY config.json.template /opt/meshcentral/config.json.template
 | 
						|
COPY startup.sh startup.sh
 | 
						|
#environment variables
 | 
						|
 | 
						|
EXPOSE 80 443
 | 
						|
 | 
						|
#volumes
 | 
						|
VOLUME /opt/meshcentral/meshcentral-data
 | 
						|
VOLUME /opt/meshcentral/meshcentral-files
 | 
						|
 | 
						|
CMD ["bash","/opt/meshcentral/startup.sh"]
 |