Skip to content

Instantly share code, notes, and snippets.

View brettferdosi's full-sized avatar
🥸

Brett Gutstein brettferdosi

🥸
View GitHub Profile
@brettferdosi
brettferdosi / docker-cross
Last active July 21, 2023 19:54
docker cross compilation and running
requires recent-ish docker
to build, first install emulation support binaries for the platforms you want to support (alternatively, if you are on an arm64 mac, you can turn on rosetta emulation in the features under development pane of docker desktop)
```
docker run --privileged --rm tonistiigi/binfmt --install all # can also pass e.g. arm64,amd64 instead of all
```
then build with a platform