This PR resolves that make docker, up until now, has only produced a viable docker image when the host was ALSO linux/amd64.
If I am an OSx user, and I used make build, that would provide a suitable binary for me on OSx, but it would not provide a suitable binary for the base docker image quay.io/prometheus/busybox:latest.
Creating a distinct make build-linux-amd64, and having make docker depend on that step ensures that the produced docker image will be able to run on quay.io/prometheus/busybox:latest without issue.
This PR resolves that
make docker
, up until now, has only produced a viable docker image when the host was ALSOlinux/amd64
.If I am an OSx user, and I used
make build
, that would provide a suitable binary for me on OSx, but it would not provide a suitable binary for the base docker imagequay.io/prometheus/busybox:latest
.Creating a distinct
make build-linux-amd64
, and havingmake docker
depend on that step ensures that the produced docker image will be able to run onquay.io/prometheus/busybox:latest
without issue.