Last active
May 17, 2017 20:18
These commands add Tini to a Docker image - https://github.com/krallin/tini
This file contains hidden or 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