github.com/anchore/syft@v1.38.2/test/install/environments/Dockerfile-busybox-1.36 (about) 1 FROM alpine as certs 2 RUN apk update && apk add ca-certificates 3 4 # note: using qemu with a multi-arch image results in redirects not working with wget 5 # so let docker pull the image that matches the hosts architecture first and then pull the correct asset 6 FROM busybox:1.36.1-musl 7 8 RUN ARCH=$(uname -m) && \ 9 if [ "$ARCH" = "x86_64" ]; then \ 10 COSIGN_ARCH="amd64"; \ 11 elif [ "$ARCH" = "aarch64" ]; then \ 12 COSIGN_ARCH="arm64"; \ 13 else \ 14 echo "Unsupported architecture: $ARCH" && exit 1; \ 15 fi && \ 16 echo "Downloading cosign for $COSIGN_ARCH" && \ 17 wget https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-${COSIGN_ARCH} && \ 18 mv cosign-linux-${COSIGN_ARCH} /bin/cosign && \ 19 chmod +x /bin/cosign 20 21 COPY --from=certs /etc/ssl/certs /etc/ssl/certs