mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	changed baseimage to alpine; exposed intel amt port (4433)
This commit is contained in:
		
							parent
							
								
									16dd0fba11
								
							
						
					
					
						commit
						908059a6f5
					
				
					 1 changed files with 3 additions and 12 deletions
				
			
		| 
						 | 
					@ -1,6 +1,5 @@
 | 
				
			||||||
# Filename: Dockerfile
 | 
					FROM node:current-alpine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM node:slim
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#Add non-root user, add installation directories and assign proper permissions
 | 
					#Add non-root user, add installation directories and assign proper permissions
 | 
				
			||||||
RUN mkdir -p /opt/meshcentral
 | 
					RUN mkdir -p /opt/meshcentral
 | 
				
			||||||
| 
						 | 
					@ -8,15 +7,7 @@ RUN mkdir -p /opt/meshcentral
 | 
				
			||||||
# meshcentral installation
 | 
					# meshcentral installation
 | 
				
			||||||
WORKDIR /opt/meshcentral
 | 
					WORKDIR /opt/meshcentral
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# add mongodb repository to apt
 | 
					RUN apk add --no-cache bash
 | 
				
			||||||
RUN apt-get update && apt-get install -y gnupg2 wget
 | 
					 | 
				
			||||||
RUN wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add -
 | 
					 | 
				
			||||||
RUN echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# install mongodb
 | 
					 | 
				
			||||||
RUN apt-get update \
 | 
					 | 
				
			||||||
    && apt-get install -y mongodb-org-tools \
 | 
					 | 
				
			||||||
    && rm -rf /var/lib/apt/lists/*
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN mkdir /opt/meshcentral/meshcentral
 | 
					RUN mkdir /opt/meshcentral/meshcentral
 | 
				
			||||||
COPY ./ /opt/meshcentral/meshcentral/
 | 
					COPY ./ /opt/meshcentral/meshcentral/
 | 
				
			||||||
| 
						 | 
					@ -38,7 +29,7 @@ RUN cd meshcentral/translate && node translate.js minifyall
 | 
				
			||||||
RUN cd meshcentral/translate && node translate.js translateall
 | 
					RUN cd meshcentral/translate && node translate.js translateall
 | 
				
			||||||
RUN cd meshcentral/translate && node translate.js extractall
 | 
					RUN cd meshcentral/translate && node translate.js extractall
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 80 443
 | 
					EXPOSE 80 443 4433
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# volumes
 | 
					# volumes
 | 
				
			||||||
VOLUME /opt/meshcentral/meshcentral-data
 | 
					VOLUME /opt/meshcentral/meshcentral-data
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue