From 6c10bd8113273180b46fd5d33cafd4637dbccc77 Mon Sep 17 00:00:00 2001 From: Henrik Jonsson Date: Wed, 11 May 2016 22:52:26 +0200 Subject: [PATCH] Make gpg fetch command separate layer again This seems flaky, commonly gives "keys: key 4E2C6E8793298290 can't be retrieved, gpg: no valid OpenPGP data found." Not sure what's up, but keeping a separate layer cached makes it more probably that this flakiness will still build. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd0cb1a..19bd67d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,8 +29,8 @@ RUN useradd --create-home --home-dir $HOME user && \ WORKDIR /usr/local/bin -RUN gpg --keyserver pgp.mit.edu --recv-keys $RELEASE_KEY && \ - curl --fail -O -sSL ${RELEASE_URL} && \ +RUN gpg --keyserver pgp.mit.edu --recv-keys $RELEASE_KEY +RUN curl --fail -O -sSL ${RELEASE_URL} && \ curl --fail -O -sSL ${RELEASE_URL}.asc && \ gpg --verify ${RELEASE_FILE}.asc && \ echo "$SHA256_CHECKSUM $RELEASE_FILE" > sha256sums.txt && \