Drop -J / --remote-header-name from curl call

It is incompatible with --continue-at. See [1].

[1] https://gitlab.archlinux.org/archlinux/archlinux-docker/-/jobs/34434#L72
This commit is contained in:
Justin Kromlinger 2021-09-16 20:33:52 +02:00
parent 9cbe452289
commit 1d15a041f7
No known key found for this signature in database
GPG Key ID: 69EF6D9E49A64EB8

View File

@ -13,7 +13,7 @@ COPY TEMPLATE_ROOTFS_FILE /
RUN apk add --no-cache curl bash
SHELL ["/bin/bash", "-c"]
# TEMPLATE_ROOTFS_RELEASE_URL
RUN ROOTFS="$(curl -sOJL --continue-at - -w "%{filename_effective}" TEMPLATE_ROOTFS_URL)" && \
RUN ROOTFS="$(curl -sOL --continue-at - -w "%{filename_effective}" TEMPLATE_ROOTFS_URL)" && \
sha256sum -c <<< "TEMPLATE_ROOTFS_HASH" && \
mkdir /rootfs && \
tar -C /rootfs --extract --file "${ROOTFS}"