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,\
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