Multiarch build with arm64 architecture support#1
Multiarch build with arm64 architecture support#12bleere wants to merge 1 commit intofonoster:mainfrom
Conversation
…g netdiscover binary for the right architecture from an alternate repo. Updated base image to bookworm slim and updated legacy ENV variables in Dockerfile. Build with dockerbuildx: docker buildx build --platform linux/amd64,linux/arm64 -t your-image:tag .
|
Hi @2bleere, Seems straightforward. I'll give it a try soon and report back. Thanks! |
|
Since |
|
I think that works too, the build targets OS/Architecture currently only linux arm64 and amd64 as rtpengine requires linux as the OS, but if you have a different approach we can try. We can include the compiling for netdiscover in the same Dockerfile, but my guess is that the resulting image will be considerably larger as go needs to be installed in the base to compile netdiscover afterwards. There are many ways we can try, let me know which one you'd like and I can test accordingly. |
Updated Dockerfile for multi-arch build for amd64 and arm64 downloading netdiscover binary for the right architecture from an alternate repo. Updated base image to bookworm slim and updated legacy ENV variables in Dockerfile.
Build with dockerbuildx: