Skip to content

How to build a multi platform aot docker image #110288

Answered by am11
WeihanLi asked this question in Q&A
Discussion options

You must be logged in to vote

Dockerfile: WeihanLi/dotnet-httpie@cddc41e/Dockerfile

Here is the diff: https://gist.github.com/am11/d2519126fb9bc6665f9b4ececbb3d411/revisions

that additional file command at the end prints:

/app/artifacts/http: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=8e8a12134dd8a5ba09be97a1ef2e7447406447fd, for GNU/Linux 3.2.0, stripped
...
/app/artifacts/http: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=f4a9ba02c1e46fa5081b454f6b62821285afe6a3, for GNU/Linux 3.7.0, stripped

confirms published binary has intended arch.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@WeihanLi
Comment options

@WeihanLi
Comment options

Answer selected by WeihanLi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants