How to build a Distroless image for Quarkus native?
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 !