azcopy in a "scratch" image to use as a build artifact
254
This is just a build artifact which makes the azcopy v10 (linux) binary available for copying from /usr/bin/azcopy when you build a container.
FROM alpine as azcopy
RUN apk add --no-cache -q curl wget \
&& echo "Installing azcopy version $(curl -s https://azcopyvnext.azureedge.net/releasemetadata/latest_version.txt)" \
&& wget -q https://aka.ms/downloadazcopy-v10-linux -O /tmp/azcopy.tgz \
&& export BIN_LOCATION=$(tar -tzf /tmp/azcopy.tgz | grep "/azcopy") \
&& tar -xzf /tmp/azcopy.tgz $BIN_LOCATION --strip-components=1 -C /usr/bin
FROM scratch
COPY --from=azcopy /usr/bin/azcopy /usr/bin/azcopy
-A JeffK Joint
Content type
Image
Digest
Size
8.4 MB
Last updated
almost 7 years ago
docker pull intlfcstone/azcopy