From c232253af7ce7ff89fd61389d1e5e5313f2fbfb5 Mon Sep 17 00:00:00 2001 From: igal-SX <71224783+igal-SX@users.noreply.github.com> Date: Tue, 14 Sep 2021 22:03:03 +0300 Subject: [PATCH] add docker create for ARM adding all relevant docker buildx commands for arm. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index bdcaa81..b4a3154 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,14 @@ Build the docker image with the following commands: docker build -t drillster/drone-email:latest . ``` +Build the docker for ARM with buildx + +``` +docker buildx create --name mybuilder +docker buildx use mybuilder +docker buildx build --file Dockerfile.armhf --platform linux/arm64/v7,linux/arm64 -t drone-email:latest . +``` + This will create a Docker image called `drillster/drone-email:latest`. Please note incorrectly building the image for the correct x64 linux and with GCO disabled will result in an error when running the Docker image: