From 6d915621b7b4d93b2e6f255cb411f59384761b34 Mon Sep 17 00:00:00 2001 From: Pi Farm Date: Sun, 28 Sep 2025 16:15:14 +0000 Subject: [PATCH] add ARG for s6-version --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3efccf..621b09c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,20 @@ FROM debian:bookworm-slim - +ARG s6-version=3.2.1.0 RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get -y install xz-utils wget && rm -rf /var/lib/apt/list/* -RUN wget -O /tmp/s6-overlay-noarch.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v3.2.0.0/s6-overlay-noarch.tar.xz +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/v3.2.0.0/s6-overlay-i686.tar.xz ; fi; +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/v3.2.0.0/s6-overlay-x86_64.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/v3.2.0.0/s6-overlay-aarch64.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/v3.2.0.0/s6-overlay-arm.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/*