Using node:13-alpine to reduce image size

This commit is contained in:
Mahesh Asolkar 2020-01-26 21:58:06 -08:00
parent c9f88d5aa8
commit 41f50839bb
2 changed files with 5 additions and 3 deletions

View File

@ -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"]

View File

@ -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",