This commit is contained in:
Philipp Kunz 2017-06-30 20:49:15 +02:00
parent d755a79f96
commit 97cc6b7b98

View File

@ -1,6 +1,6 @@
FROM docker:git
ENV VERSION=v6.3.0 NPM_VERSION=latest
ENV VERSION=v8.1.3 NPM_VERSION=latest
ENV CONFIG_FLAGS="--fully-static" DEL_PKGS="libgcc libstdc++" RM_DIRS=/usr/include
RUN apk add --no-cache ca-certificates bash curl make gcc g++ python linux-headers paxctl libgcc libstdc++ gnupg && \
@ -31,11 +31,7 @@ RUN apk add --no-cache ca-certificates bash curl make gcc g++ python linux-heade
if [ -x /usr/bin/npm ]; then \
npm install -g npm@${NPM_VERSION} && \
find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf; \
fi && \
apk del make gcc g++ linux-headers paxctl gnupg ${DEL_PKGS} && \
rm -rf /node-${VERSION}.tar.gz /SHASUMS256.txt.asc /node-${VERSION} ${RM_DIRS} \
/usr/share/man /tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp /root/.gnupg \
/usr/lib/node_modules/npm/man /usr/lib/node_modules/npm/doc /usr/lib/node_modules/npm/html
fi
RUN curl -o- -L https://yarnpkg.com/install.sh | sh
RUN npm config set unsafe-perm true