Closed Asher-JH closed 1 year ago
Can you please verify using: Architecture: x86_64? ( with --platform linux/amd64
)
Does the command
docker build --platform linux/amd64 -t ghcr.io/gis-ops/docker-valhalla/valhalla:latest .
work for you?
related1:
--platform
flag to specify the target platform for the build output, (for example, linux/amd64
, linux/arm64
, or darwin/amd64
).""related2:
Thanks, using the --platform
flags makes the build run successfully but now I'm facing the same issue in the related issue you mentioned in you comment.
I'm getting the same error on M1 Mac as well as Google Cloud Build, even with --platform linux/amd64
specified.
I've forked the project and downgraded the builder image to ARG VALHALLA_BUILDER_IMAGE=ghcr.io/valhalla/valhalla:3.4.0
in the Dockerfile which built successfully.
So it looks like there's an issue with the current valhalla/valhalla:latest
image.
I was having trouble running the pulled Docker image, would run into a platform issue when trying to run it.
So I have cloned the repo & tried building the Docker image with this command as following the docs:
docker build -t ghcr.io/gis-ops/docker-valhalla/valhalla:latest .
Results in the below build error:
Running on M2 Mac Latest repo cloned
Any help would be greatly appreciated