Skip to content

Commit

Permalink
use alpine node image
Browse files Browse the repository at this point in the history
  • Loading branch information
otseobande committed Aug 26, 2019
1 parent 65f6a86 commit 8e65761
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# CloudBoost Dockerfile
#
# Pull base image nodejs image.
FROM node:8.15
FROM node:8.15-alpine

#Maintainer.
MAINTAINER Nawaz Dhandala <[email protected]>
Expand All @@ -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
Expand Down

0 comments on commit 8e65761

Please sign in to comment.