mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 15:23:27 +08:00
add docker build image command for building multi architecture image
This commit is contained in:
parent
33e3227b81
commit
82e0bcec8e
1 changed files with 15 additions and 0 deletions
15
docs/build-image.md
Normal file
15
docs/build-image.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
To build a multi-architecture image, you need to use `buildx`.
|
||||||
|
|
||||||
|
Here's the command to build and push the images from a Mac M1:
|
||||||
|
|
||||||
|
1) First create a new buildx environment (or context). This is only necessary for the first time.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker buildx create --use
|
||||||
|
```
|
||||||
|
|
||||||
|
2) Build and push the image. Replace `simplelogin/name:tag` by the correct docker image name and tag.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker buildx build --platform linux/amd64,linux/arm64 --push -t simplelogin/name:tag
|
||||||
|
```
|
Loading…
Reference in a new issue