Browse code

Add TARGETARCH var to frozen images stage

This allows the arch that buildkit passes through to be used for the
frozen image downloader.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>

Brian Goff authored on 2020/09/30 07:39:49
Showing 1 changed files
... ...
@@ -91,6 +91,7 @@ RUN --mount=type=cache,sharing=locked,id=moby-frozen-images-aptlib,target=/var/l
91 91
            jq
92 92
 # Get useful and necessary Hub images so we can "docker load" locally instead of pulling
93 93
 COPY contrib/download-frozen-image-v2.sh /
94
+ARG TARGETARCH
94 95
 RUN /download-frozen-image-v2.sh /build \
95 96
         buildpack-deps:buster@sha256:d0abb4b1e5c664828b93e8b6ac84d10bce45ee469999bef88304be04a2709491 \
96 97
         busybox:latest@sha256:95cf004f559831017cdf4628aaf1bb30133677be8702a8c5f2994629f637a209 \