This commit is contained in:
19
Dockerfile
19
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
|
||||
|
||||
Reference in New Issue
Block a user