Verified Commit ecb01053 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Use ./exclude mechanism for /etc/resolv.conf

parent f114a6d4
......@@ -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/ /
......
......@@ -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/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment