Using node:13-alpine to reduce image size
This commit is contained in:
		| @@ -1,5 +1,7 @@ | ||||
| # Based on node | ||||
| FROM node:13 | ||||
| FROM node:13-alpine | ||||
|  | ||||
| RUN apk add git | ||||
|  | ||||
| # Create app directory | ||||
| WORKDIR /usr/src/app | ||||
| @@ -8,7 +10,7 @@ WORKDIR /usr/src/app | ||||
| RUN git clone https://git.heshapps.com/asolkar/mma-ask-app.git . | ||||
|  | ||||
| RUN npm install | ||||
| # RUN npm ci --only=production | ||||
| RUN npm ci --only=production | ||||
|  | ||||
| EXPOSE 3000 | ||||
| CMD ["node", "ask.js"] | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|     "name": "mma_ask_docker_app", | ||||
|     "version": "0.5", | ||||
|     "version": "0.6", | ||||
|     "description": "Ask app", | ||||
|     "author": "Mahesh Asolkar <mahesh@mahesha.com>", | ||||
|     "main": "ask.js", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user