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.
		
		
		
		
		
			
		
			
				
					
					
						
							24 lines
						
					
					
						
							355 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							355 B
						
					
					
				| FROM node:18-alpine AS build
 | |
| 
 | |
| # install dependencies
 | |
| WORKDIR /app
 | |
| COPY package.json yarn.lock ./
 | |
| RUN yarn install
 | |
| 
 | |
| # Copy all local files into the image.
 | |
| COPY . .
 | |
| 
 | |
| RUN yarn build
 | |
| 
 | |
| ###
 | |
| # Only copy over the Node pieces we need
 | |
| # ~> Saves 35MB
 | |
| ###
 | |
| FROM node:18-alpine AS deploy
 | |
| 
 | |
| WORKDIR /app
 | |
| COPY --from=0 /app .
 | |
| COPY . .
 | |
| 
 | |
| EXPOSE 3000
 | |
| CMD ["node", "./build"] |