Added basic docker support.
This commit is contained in:
		
							
								
								
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| FROM node:18.19.0 | ||||
|  | ||||
| ENV APP_DIR=/app | ||||
| ENV CONFIG_DIR=/config | ||||
| ENV LOGS_DIR=/logs | ||||
| ENV WEB_PORT=9011 | ||||
|  | ||||
| RUN mkdir -p ${APP_DIR}/node_modules | ||||
|  | ||||
| WORKDIR ${APP_DIR} | ||||
| COPY package*.json ./ | ||||
| RUN npm install | ||||
| COPY . . | ||||
|  | ||||
| EXPOSE ${WEB_PORT} | ||||
|  | ||||
| CMD [ "node", "app.js" ] | ||||
		Reference in New Issue
	
	Block a user