add docker build files
This commit is contained in:
		
							
								
								
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
FROM node:alpine as Build
 | 
			
		||||
ENV NODE_ENV=production
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
COPY [ "yarn.lock", "package.json", "index.ts", "tsconfig.json", "./" ]
 | 
			
		||||
COPY server ./server
 | 
			
		||||
 | 
			
		||||
RUN yarn install --production
 | 
			
		||||
 | 
			
		||||
RUN yarn run build
 | 
			
		||||
CMD ["yarn run start"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user