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