Added Dockerfile.
This commit is contained in:
		
							
								
								
									
										8
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # Ignore everything by default | ||||
| * | ||||
|  | ||||
| # Allow the public project files. | ||||
| !src | ||||
| !Dockerfile | ||||
| !package*.json | ||||
| !README.md | ||||
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| FROM node:16.6.1-alpine | ||||
|  | ||||
| WORKDIR /opt/app | ||||
| COPY package*.json ./ | ||||
|  | ||||
| RUN npm ci --only=prod | ||||
| COPY . . | ||||
|  | ||||
| ENV NODE_ENV=production | ||||
| ENV FILES_DIR=NULL | ||||
|  | ||||
| CMD ["npm", "start"] | ||||
		Reference in New Issue
	
	Block a user