Keep devDependencies installed in docker image (#1047)

This commit is contained in:
jojobyte 2021-03-04 15:32:14 -07:00 committed by GitHub
parent ae6d5cb6bf
commit 1c25266935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ ENV NPM_CONFIG_LOGLEVEL warn
RUN apk update && apk upgrade \
&& apk add --no-cache ca-certificates nodejs-npm \
&& apk add --no-cache --virtual .build-dependencies python2 make g++ \
&& npm install --production \
&& npm install --production=false \
&& apk del .build-dependencies && rm -rf /var/cache/* /tmp/npm*
EXPOSE 8080
EXPOSE 8765