Last active
May 17, 2017 20:18
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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