Fix Dockerfile

This commit is contained in:
soohwa 2018-01-28 10:04:10 +01:00
parent 081c1fdf83
commit 1616dd1b74

View file

@ -40,7 +40,7 @@ RUN \
# Verify nodejs authenticity # Verify nodejs authenticity
grep ${NODE_VERSION}-${ARCHITECTURE}.tar.gz SHASUMS256.txt.asc | shasum -a 256 -c - && \ grep ${NODE_VERSION}-${ARCHITECTURE}.tar.gz SHASUMS256.txt.asc | shasum -a 256 -c - && \
export GNUPGHOME="$(mktemp -d)" && \ export GNUPGHOME="$(mktemp -d)" && \
\
# Try other key servers if ha.pool.sks-keyservers.net is unreachable # Try other key servers if ha.pool.sks-keyservers.net is unreachable
# Code from https://github.com/chorrell/docker-node/commit/2b673e17547c34f17f24553db02beefbac98d23c # Code from https://github.com/chorrell/docker-node/commit/2b673e17547c34f17f24553db02beefbac98d23c
# gpg keys listed at https://github.com/nodejs/node#release-team # gpg keys listed at https://github.com/nodejs/node#release-team
@ -59,7 +59,10 @@ RUN \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \ gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \
done && \ done && \
gpg --verify SHASUMS256.txt.asc && \ gpg --verify SHASUMS256.txt.asc && \
rm -R "$GNUPGHOME" SHASUMS256.txt.asc && \ # Ignore socket files then delete files then delete directories
find "$GNUPGHOME" -type f | xargs rm -f && \
find "$GNUPGHOME" -type d | xargs rm -fR && \
rm -f SHASUMS256.txt.asc && \
\ \
# Install Node # Install Node
tar xvzf node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \ tar xvzf node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \