From 29546ffeb4fd4e44eea14d1e1ed57996a0bb5577 Mon Sep 17 00:00:00 2001 From: pi-farm Date: Mon, 16 Mar 2026 16:23:00 +0100 Subject: [PATCH] fix root-fs --- Dockerfile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e27cc4..2bb1318 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ apk-tools,\ busybox,\ libc-utils +# install packages # install packages RUN \ apk add --no-cache \ @@ -24,15 +25,17 @@ RUN \ tzdata \ xz -# build rootfs +# grab base tarball RUN \ - mkdir -p "${ROOTFS}/etc/apk" && \ - { \ - echo "${MIRROR}/${REL}/main"; \ - echo "${MIRROR}/${REL}/community"; \ - } > "${ROOTFS}/etc/apk/repositories" && \ - apk --root "${ROOTFS}" --no-cache --keys-dir /etc/apk/keys add --arch ${BUILD_S6_ARCH_amd64} --initdb ${PACKAGES//,/ } && \ - sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow + mkdir /root-out && \ + curl -o \ + /rootfs.tar.gz -L \ + https://github.com/debuerreotype/docker-debian-artifacts/raw/refs/heads/dist-${ARCH}/${REL}/slim/oci/blobs/rootfs.tar.gz && \ + tar xf \ + /rootfs.tar.gz -C \ + /root-out && \ + rm -rf \ + /root-out/var/log/* # add s6 overlay ADD https://github.com/just-containers/s6-overlay/releases/download/v${BUILD_S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp