chore: reduce docker image

This commit is contained in:
Septs 2020-04-14 17:20:07 +08:00
parent 17f90d6d10
commit 47b29768c7

View File

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