Closed j4ys0n closed 4 years ago
You need to pass TARGETPLATFORM
as a build arg to docker, otherwise it doesn't know what platform is it compiling for. I suggest taking a look at https://github.com/ruimarinho/docker-bitcoin-core/blob/master/.github/workflows/build.yaml to understand how to build it locally.
I've been running into the same problem. Why isn't there a default?
@schildbach this image uses the newer and more advanced BuildKit framework from docker, so technically those environment variables are being set by docker buildx
and not myself. I don't mind defaulting the internal ARG TARGETPLATFORM
to linux/amd64
to make docker build
easier to run.
docker build -t btc .