Skip to content

Instantly share code, notes, and snippets.

@lionello
Created October 21, 2023 12:18
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 lionello/38f3451f5989a8adbac884d514ddbb93 to your computer and use it in GitHub Desktop.
Save lionello/38f3451f5989a8adbac884d514ddbb93 to your computer and use it in GitHub Desktop.
Dockerfile for krallin/tini
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