From 3246fcce22ca4a15d6e279a5e6b643dac13f4f8a Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 19 Jul 2022 06:53:15 -0500 Subject: [PATCH] document buildx setup --- docs/docs/contributing.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/docs/contributing.md b/docs/docs/contributing.md index 82903d599..0d5c49262 100644 --- a/docs/docs/contributing.md +++ b/docs/docs/contributing.md @@ -208,3 +208,16 @@ npm run build ``` This command generates static content into the `build` directory and can be served using any static contents hosting service. + +## Official builds + +Setup buildx for multiarch + +``` +docker buildx stop builder && docker buildx rm builder # <---- if existing +docker run --privileged --rm tonistiigi/binfmt --install all +docker buildx create --name builder --driver docker-container --driver-opt network=host --use +docker buildx inspect builder --bootstrap +make build_web +make push +```