From 04b223d937ae2c4f06bcd793135c104e390398b6 Mon Sep 17 00:00:00 2001 From: Pi Farm Date: Sun, 28 Sep 2025 19:30:14 +0000 Subject: [PATCH] =?UTF-8?q?Dockerfile=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1d3a7aa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM alpine:3.22 +ARG s6_version=3.2.1.0 +RUN apk add --no-cache xz-utils wget + +RUN wget -O /tmp/s6-overlay-noarch.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${s6_version}/s6-overlay-noarch.tar.xz +RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz + +RUN if [ $(arch) = "i386" ] ; then wget -O /tmp/s6-overlay-i686.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${s6_version}/s6-overlay-i686.tar.xz ; fi; +RUN if [ $(arch) = "i386" ] ; then tar -C / -Jxpf /tmp/s6-overlay-i686.tar.xz ; fi; + +RUN if [ $(arch) = "x86_64" ] ; then wget -O /tmp/s6-overlay-x86_64.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${s6_version}/s6-overlay-x86_64.tar.xz ; fi; +RUN if [ $(arch) = "x86_64" ] ; then tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz ; fi; + +RUN if [ $(arch) = "arm64" ] ; then wget -O /tmp/s6-overlay-aarch64.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${s6_version}/s6-overlay-aarch64.tar.xz ; fi; +RUN if [ $(arch) = "arm64" ] ; then tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz ; fi; + +RUN if [ $(arch) = "armv7l" ] ; then wget -O /tmp/s6-overlay-arm.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${s6_version}/s6-overlay-arm.tar.xz ; fi; +RUN if [ $(arch) = "armv7l" ] ; then tar -C / -Jxpf /tmp/s6-overlay-arm.tar.xz ; fi; + +RUN mkdir /app && rm -rf /tmp/* + +WORKDIR /app + +ENTRYPOINT [ "/init" ]