Created
October 21, 2023 12:18
-
-
Save lionello/38f3451f5989a8adbac884d514ddbb93 to your computer and use it in GitHub Desktop.
Dockerfile for 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
FROM alpine:3 as tini | |
# The is automatically set by docker buildx | |
ARG TARGETARCH | |
# From https://github.com/krallin/tini#signed-binaries | |
ENV TINI_VERSION v0.19.0 | |
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TARGETARCH} /tini | |
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TARGETARCH}.asc /tini.asc | |
RUN apk add --no-cache gnupg \ | |
&& gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \ | |
&& gpg --batch --verify /tini.asc /tini | |
RUN chmod +x /tini | |
FROM scratch | |
COPY --link --from=tini /tini /usr/local/sbin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment