How to build a Distroless image for Quarkus native?

Maxime DAVID
Jan 12, 2021

--

You may have encounter this error :

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

This is due to the lack of libstdc++.so.6 as documented here : https://github.com/quarkusio/quarkus-images/issues/61

One workaround is to add this library (with two other needed dependencies)

Here is the Dockerfile :

Here is the full working example on GitHub : https://github.com/maxday/quarkus-native-distroless

Hope this helps !

https://design.jboss.org/quarkus/index.htm

--

--

Maxime DAVID
Maxime DAVID

Written by Maxime DAVID

12-Factor App believer, Speaker, Open-Source enthusiast, Software Engineer @Datadog

No responses yet