diff --git a/Dockerfile.template b/Dockerfile.template index b9c722d..45612ef 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -4,8 +4,7 @@ SHELL ["/bin/bash", "-c"] RUN ROOTFS="$(curl --continue-at - --remote-name --write-out "%{filename_effective}" TEMPLATE_ROOTFS_URL)" && \ sha256sum -c <<< "TEMPLATE_ROOTFS_HASH" && \ mkdir /rootfs && \ - # Fix kaniko DNS problems as kaniko uses the current layer's resolv.conf. \ - tar -C /rootfs --extract --auto-compress --exclude=./etc/resolv.conf --file "${ROOTFS}" + tar -C /rootfs --extract --auto-compress --file "${ROOTFS}" FROM scratch AS base COPY --from=verify /rootfs/ / diff --git a/exclude b/exclude index 0a45d22..7074803 100644 --- a/exclude +++ b/exclude @@ -5,6 +5,7 @@ ./dev ./etc/hostname ./etc/machine-id +./etc/resolv.conf ./etc/pacman.d/gnupg/openpgp-revocs.d/* ./etc/pacman.d/gnupg/private-keys-v1.d/* ./etc/pacman.d/gnupg/pubring.gpg~ @@ -13,4 +14,4 @@ ./tmp/* ./var/cache/pacman/pkg/* ./var/lib/pacman/sync/* -./var/tmp/* \ No newline at end of file +./var/tmp/*