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.
This commit is contained in:
Henrik Jonsson 2016-05-11 22:52:26 +02:00
parent b0aa22d50c
commit 6c10bd8113

View File

@ -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 && \