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

This reverts commit 1d15a041f708fa5bf2ae84a5a9377ea5400f1ceb.
This commit is contained in:
Justin Kromlinger 2021-09-18 13:02:46 +02:00
parent 1d15a041f7
commit 20c6261eb0
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 -sOL --continue-at - -w "%{filename_effective}" TEMPLATE_ROOTFS_URL)" && \
RUN ROOTFS="$(curl -sOJL --continue-at - -w "%{filename_effective}" TEMPLATE_ROOTFS_URL)" && \
sha256sum -c <<< "TEMPLATE_ROOTFS_HASH" && \
mkdir /rootfs && \
tar -C /rootfs --extract --file "${ROOTFS}"