Skip to content

Commit 480d9c6

Browse files
authored
Dockerfile-updates (#47)
* Update how keys are fetched See: nodejs/docker-node#2252 * Fix Dockerfile linting issues
1 parent 61c1698 commit 480d9c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

14/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ RUN set -ex \
1515
108F52B48DB57BB0CC439B2997B01419BD92F80A \
1616
B9E2F5981AA6E0CD28160D9FF13993A75599653C \
1717
; do \
18-
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" ; \
18+
{ gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || \
19+
{ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; \
1920
done
2021

21-
ENV NPM_CONFIG_LOGLEVEL info
22-
ENV NODE_VERSION 14.17.1
22+
ENV NPM_CONFIG_LOGLEVEL=info
23+
ENV NODE_VERSION=14.17.1
2324

2425
RUN curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
2526
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \

0 commit comments

Comments
 (0)