From 8e65761d72b777724f6c11f66231d154ea802f0d Mon Sep 17 00:00:00 2001 From: Otse Obande Date: Mon, 26 Aug 2019 14:40:25 +0100 Subject: [PATCH] use alpine node image --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 01741771..513f2949 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # CloudBoost Dockerfile # # Pull base image nodejs image. -FROM node:8.15 +FROM node:8.15-alpine #Maintainer. MAINTAINER Nawaz Dhandala @@ -14,7 +14,9 @@ WORKDIR /usr/src/app # Install app dependencies COPY package.json /usr/src/app/ -RUN npm install +RUN apk add --no-cache make gcc g++ python && \ + npm install --production && \ + apk del make gcc g++ python # Bundle app source COPY . /usr/src/app