Skip to content

Commit 25c49b0

Browse files
Merge pull request #373 from CloudBoost/ch-update-docker-base-image
Use alpine Docker Node image
2 parents 65f6a86 + 8e65761 commit 25c49b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# CloudBoost Dockerfile
33
#
44
# Pull base image nodejs image.
5-
FROM node:8.15
5+
FROM node:8.15-alpine
66

77
#Maintainer.
88
MAINTAINER Nawaz Dhandala <[email protected]>
@@ -14,7 +14,9 @@ WORKDIR /usr/src/app
1414
# Install app dependencies
1515
COPY package.json /usr/src/app/
1616

17-
RUN npm install
17+
RUN apk add --no-cache make gcc g++ python && \
18+
npm install --production && \
19+
apk del make gcc g++ python
1820

1921
# Bundle app source
2022
COPY . /usr/src/app

0 commit comments

Comments
 (0)