add docker create for ARM

adding all relevant docker buildx commands for arm.
This commit is contained in:
igal-SX 2021-09-14 22:03:03 +03:00 committed by GitHub
parent 1d2b6deb8d
commit c232253af7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: