Skip to content

Instantly share code, notes, and snippets.

@elyscape
Last active May 17, 2017 20:18
Show Gist options
  • Save elyscape/7b8d0a308932bb4b65f2b89c314d2603 to your computer and use it in GitHub Desktop.
Save elyscape/7b8d0a308932bb4b65f2b89c314d2603 to your computer and use it in GitHub Desktop.
These commands add Tini to a Docker image - https://github.com/krallin/tini
# Set TINI_ARCH to one of:
# ''
# amd64
# arm64
# armhf
# i386
# static
# static-amd64
# static-arm64
# static-armhf
# static-i386
RUN \
TINI_VERSION=v0.14.0 && \
TINI_ARCH=amd64 && \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0x595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && \
curl -fsSLo /sbin/tini "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini${TINI_ARCH:+-$TINI_ARCH}" && \
curl -fsSL "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini${TINI_ARCH:+-$TINI_ARCH}.asc" | \
gpg --verify - /sbin/tini && \
chmod +x /sbin/tini
ENTRYPOINT [ "/sbin/tini", "--" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment