Update building for all platforms

This commit is contained in:
Jiří Štefka 2022-05-15 14:28:17 +02:00 committed by GitHub
parent 70b846c733
commit 6e4b6a4e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,8 +106,8 @@ volumes:
##### Building only for the architecture you are building the image on (when building on Raspberry Pi result will be `arm64`, when on pc result will be `amd64`) ##### Building only for the architecture you are building the image on (when building on Raspberry Pi result will be `arm64`, when on pc result will be `amd64`)
`docker-compose build` `docker-compose build`
##### Building for all supported architectures (you have to have your environment setup for emulation of arm64 with `qemu`) ##### Building for all supported architectures (you have to have your environment setup for emulation of arm64 with `qemu`) - you have to push to DockerHub
`docker buildx build --platform linux/arm64,linux/amd64,linux/386 . `docker buildx build --push --platform linux/arm64,linux/amd64,linux/386 .`
#### 3. Create and start the container #### 3. Create and start the container
`docker-compose up -d` `docker-compose up -d`
@ -127,8 +127,8 @@ volumes:
##### Building only for the architecture you are building the image on (when building on Raspberry Pi result will be `arm64`, when on pc result will be `amd64`) ##### Building only for the architecture you are building the image on (when building on Raspberry Pi result will be `arm64`, when on pc result will be `amd64`)
`docker-compose build` `docker-compose build`
##### Building for all supported architectures (you have to have your environment setup for emulation of arm64 with `qemu`) ##### Building for all supported architectures (you have to have your environment setup for emulation of arm64 with `qemu`) - you have to push to DockerHub
`docker buildx build --platform linux/arm64,linux/amd64,linux/386 . `docker buildx build --push --platform linux/arm64,linux/amd64,linux/386 .`
#### 3. Create and start the new container #### 3. Create and start the new container