mirror of https://github.com/dnomd343/sub-web
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							320 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							16 lines
						
					
					
						
							320 B
						
					
					
				
								# ---- Dependencies ----
							 | 
						|
								FROM node:lts-alpine AS dependencies
							 | 
						|
								WORKDIR /app
							 | 
						|
								COPY package.json ./
							 | 
						|
								RUN yarn install
							 | 
						|
								
							 | 
						|
								# ---- Build ----
							 | 
						|
								FROM dependencies AS build
							 | 
						|
								WORKDIR /app
							 | 
						|
								COPY . /app
							 | 
						|
								RUN yarn build
							 | 
						|
								
							 | 
						|
								FROM nginx:1.16-alpine
							 | 
						|
								COPY --from=build /app/dist /usr/share/nginx/html
							 | 
						|
								EXPOSE 80
							 | 
						|
								CMD [ "nginx", "-g", "daemon off;" ]
							 | 
						|
								
							 |