doc: Add missing --platform=linux to docker build command

This is required to pick the native arch, similar to how the
CI_IMAGE_PLATFORM is set to linux.
This commit is contained in:
MarcoFalke 2025-11-17 17:49:59 +01:00
parent fa0ce4c148
commit 55555db055
No known key found for this signature in database

View File

@ -7,7 +7,7 @@ To run linters locally with the same versions as the CI environment, use the inc
Dockerfile:
```sh
DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./ && docker run --rm -v $(pwd):/bitcoin -it bitcoin-linter
DOCKER_BUILDKIT=1 docker build --platform=linux --tag=bitcoin-linter --file="./ci/lint_imagefile" ./ && docker run --rm -v $(pwd):/bitcoin -it bitcoin-linter
```
Building the container can be done every time, because it is fast when the