Commit 48ae3c7
authored
ci: improved multi-arch build times (#685)
Modified the Dockerfiles for backend, controller, and frontend to use the `--platform=$BUILDPLATFORM` directive, enabling better compatibility for multi-platform builds.
This change limits the exposure to emulation required to produce the image - ensuring the "base layer" is always built on the same architecture as the build system.
This is safe:
- for `controller` and `backend` because `go` build already supports cross-compilation
- for `frontend` because the `webpack` config simply outputs HTML files to be including in the final state of the build.
Signed-off-by: Andy Stoneberg <astonebe@redhat.com>1 parent 265db8d commit 48ae3c7
File tree
3 files changed
+4
-4
lines changed- workspaces
- backend
- controller
- frontend
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments