Skip to content

Instantly share code, notes, and snippets.

@onedr0p
Created November 8, 2019 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onedr0p/07837f77806c6ce91d9500d05766964b to your computer and use it in GitHub Desktop.
Save onedr0p/07837f77806c6ce91d9500d05766964b to your computer and use it in GitHub Desktop.
RUN mkdir -p ~/.gnupg/private-keys-v1.d \
&& chmod 700 ~/.gnupg/private-keys-v1.d \
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& /usr/bin/gpg --version \
&& curl --insecure -fsSL "${TINI_DOWNLOAD_URL}/${TINI_VERSION}/tini" -o /tini \
&& curl --insecure -fsSL "${TINI_DOWNLOAD_URL}/${TINI_VERSION}/tini.asc" -o /tini.asc \
&& GNUPGHOME="$(mktemp -d)" \
&& export GNUPGHOME \
&& gpg --keyserver hkp://ha.pool.sks-keyservers.net --recv-keys "0527A9B7" || \
gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "0527A9B7" || \
gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "0527A9B7" || \
gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "0527A9B7" ; \
gpg --batch --verify /tini.asc /tini \
&& rm -rf "$GNUPGHOME" /tini.asc \
&& mv /tini /sbin/tini \
&& chmod +x /sbin/tini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment