FROM docker.io/alpine:3.21 AS builder LABEL maintainer="Sebastian Hugentobler " RUN apk --no-cache add \ curl \ tar \ xz RUN mkdir /overlay ENV S6_OVERLAY_VERSION=v3.2.0.2 ENV S6_HASH_noarch=6dbcde158a3e78b9bb141d7bcb5ccb421e563523babbe2c64470e76f4fd02dae ENV S6_HASH_aarch64=8b22a2eaca4bf0b27a43d36e65c89d2701738f628d1abd0cea5569619f66f785 ENV S6_HASH_x86_64=59289456ab1761e277bd456a95e737c06b03ede99158beb24f12b165a904f478 RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-noarch.tar.xz RUN echo "$S6_HASH_noarch s6-overlay-noarch.tar.xz" | sha256sum -c - || exit 1 RUN tar xf s6-overlay-noarch.tar.xz -C /overlay --strip 1 RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-$(arch).tar.xz RUN eval "echo \"\${S6_HASH_$(arch)} s6-overlay-$(arch).tar.xz\" | sha256sum -c -" || exit 1 RUN tar xf s6-overlay-$(arch).tar.xz -C /overlay --strip 1 FROM docker.io/alpine:3.21 ENV LANG=en_US.UTF-8 ENV S6_KEEP_ENV=1 ENV PATH="$PATH:/command" ENV S6_GLOBAL_PATH="$PATH" COPY --from=builder /overlay / RUN apk --no-cache add \ syslog-ng \ tzdata ENV TZ=Europe/Zurich RUN apk --no-cache upgrade --ignore alpine-baselayout ADD /rootfs / ENTRYPOINT ["/init"]