-
Root Cause:
The development docker-compose.yml forces:
platform: linux/amd64
On macOS ARM hosts, this causes Docker to build under amd64 emulation (QEMU). The Go toolchain then runs with GOARCH=amd64 under emulation and crashes during the build. This is a cross-architecture build issue caused by forcing linux/amd64 on an ARM machine.
Fix:
Removing the line:
platform: linux/amd64
from the development compose file will allow Docker to build natively on the host architecture.
If amd64 images are required for deployment, they should be built in CI using:
docker buildx build –platform linux/amd64,linux/arm64 –push
The development compose file should not force architecture.
| Type |
Task
|
| Priority |
Normal
|
| Assignee | |
| Version |
none
|
| Sprints |
n/a
|
| Customer |
n/a
|
Issue Votes (0)
With latest clean repo:
Running readme's:
docker compose up --builddoesn't work (log below)Seems like still related to https://tigase.dev/sztab/~issues/83 as it still shows
GOARCH=amd64.I checked the compse file and it explicitly request:
platform: linux/amd64-- after removing it, it looks like it built fine.