graalvm / container

GraalVM container images
Other
166 stars 37 forks source link

muslib for arm64 platform? #89

Closed tisonkun closed 11 months ago

tisonkun commented 11 months ago

I'm trying to use muslib image for reduce Docker image size, which works well for x86_64 and reduce more than 75% of size - https://github.com/korandoru/hawkeye/actions/runs/7218779613/job/19668703028?pr=103

However, since the base image always install x86_64 musl toolchain, I wonder if we can have or build an arm64 version?

tisonkun commented 11 months ago

Seems a dupcalite to https://github.com/oracle/graal/issues/5872.

But hopefully we know the progress or what is the concrete technical blockers.

tisonkun commented 11 months ago

For anyone who encoutner the same issue that want a musl base image to reduce the final image size, you can follow https://github.com/korandoru/hawkeye/pull/103 to build the native-image with libc and use alpine as base image, and install gcompat to support the native-image.