Merge pull request #495 from relloyd/fix-Dockerfile-use-nodejs-npm

Dockerfile use apk nodejs-npm module.
This commit is contained in:
Mark Nadal 2018-02-01 23:18:20 -08:00 committed by GitHub
commit 0cffc489ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ WORKDIR /app
ADD . .
ENV NPM_CONFIG_LOGLEVEL warn
RUN apk update && apk upgrade \
&& apk add --no-cache ca-certificates nodejs \
&& apk add --no-cache ca-certificates nodejs-npm \
&& apk add --no-cache --virtual .build-dependencies python make g++ \
&& npm install \
&& apk del .build-dependencies && rm -rf /var/cache/* /tmp/npm*