mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2025-08-06 22:27:29 +02:00
Use ./exclude mechanism for /etc/resolv.conf
This commit is contained in:
parent
f114a6d454
commit
ecb01053cc
@ -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/ /
|
||||
|
Loading…
Reference in New Issue
Block a user