[README.md] Added instructions on how to to multiplatform builds and push them to docker hub

This commit is contained in:
BlueFox 2024-09-22 18:16:21 +00:00
parent e555a1b4c0
commit 6c841a9ba9

View File

@ -19,6 +19,12 @@ Building this docker image is quite easy. For a quick start, just use this:
docker build -t git-puller .
```
To do a multi-platform build (here with basic architectures) and upload to Docker Hub (make sure to replace <USER> with your Docker Hub username):
```sh
sudo docker buildx build --no-cache --platform linux/amd64,linux/arm64/v8 -t <USER>/git-puller . --push
```
After this is done successfully, you can check out the new image in your local image store with `docker images`.