fix root-fs
Some checks failed
/ release-and-build (push) Failing after 25s

This commit is contained in:
2026-03-16 16:23:00 +01:00
parent 190ec7a832
commit 29546ffeb4

View File

@@ -16,6 +16,7 @@ apk-tools,\
busybox,\ busybox,\
libc-utils libc-utils
# install packages
# install packages # install packages
RUN \ RUN \
apk add --no-cache \ apk add --no-cache \
@@ -24,15 +25,17 @@ RUN \
tzdata \ tzdata \
xz xz
# build rootfs # grab base tarball
RUN \ RUN \
mkdir -p "${ROOTFS}/etc/apk" && \ mkdir /root-out && \
{ \ curl -o \
echo "${MIRROR}/${REL}/main"; \ /rootfs.tar.gz -L \
echo "${MIRROR}/${REL}/community"; \ https://github.com/debuerreotype/docker-debian-artifacts/raw/refs/heads/dist-${ARCH}/${REL}/slim/oci/blobs/rootfs.tar.gz && \
} > "${ROOTFS}/etc/apk/repositories" && \ tar xf \
apk --root "${ROOTFS}" --no-cache --keys-dir /etc/apk/keys add --arch ${BUILD_S6_ARCH_amd64} --initdb ${PACKAGES//,/ } && \ /rootfs.tar.gz -C \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow /root-out && \
rm -rf \
/root-out/var/log/*
# add s6 overlay # add s6 overlay
ADD https://github.com/just-containers/s6-overlay/releases/download/v${BUILD_S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp ADD https://github.com/just-containers/s6-overlay/releases/download/v${BUILD_S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp