Merge pull request #1892 from crazyserver/MOBILE-3005
MOBILE-3005 docker: Do not install cordova on docker
This commit is contained in:
		
						commit
						3b094ef3c2
					
				
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							@ -11,15 +11,17 @@ EXPOSE 35729
 | 
				
			|||||||
# Port 53703 is the Chrome dev logger port.
 | 
					# Port 53703 is the Chrome dev logger port.
 | 
				
			||||||
EXPOSE 53703
 | 
					EXPOSE 53703
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# MoodleMobile uses Cordova, Ionic, and Gulp.
 | 
					# MoodleMobile uses Ionic and Gulp.
 | 
				
			||||||
RUN npm install -g cordova ionic gulp && rm -rf /root/.npm
 | 
					RUN npm i -g ionic gulp && rm -rf /root/.npm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY . /app
 | 
					COPY . /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The setup script will handle npm installation, cordova setup, and gulp setup.
 | 
					# Install npm libraries and run gulp to initialize the project.
 | 
				
			||||||
RUN npm run setup && rm -rf /root/.npm
 | 
					RUN npm install && gulp && rm -rf /root/.npm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN ionic info
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Provide a Healthcheck command for easier use in CI.
 | 
					# Provide a Healthcheck command for easier use in CI.
 | 
				
			||||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=30s CMD curl -f http://localhost:8100 || exit 1
 | 
					HEALTHCHECK --interval=10s --timeout=3s --start-period=30s CMD curl -f http://localhost:8100 || exit 1
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user