Add an npm dedupe call to reduce image size.

This commit is contained in:
Pagan Gazzard 2015-02-26 19:19:56 +00:00 committed by Pablo Carranza Vélez
parent 7bf0637347
commit 1f6d3acb0c

View File

@ -23,6 +23,7 @@ COPY package.json postinstall.sh /app/
RUN apt-get -q update \
&& apt-get install -qqy g++ git libsqlite3-dev make ssh-client --no-install-recommends \
&& npm install --unsafe-perm --production \
&& npm dedupe \
&& npm cache clean \
&& apt-get purge -qqy g++ git libsqlite3-dev make ssh-client \
&& apt-get clean \