-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating native image with Dockerfile.native fails #6260
Comments
A workaround is to remove |
Thank you. First RUN finished successfully. But I got another error at second RUN:
Stacktrace:
|
I can confirm that this is a bug (most likely introduced by #5308). If the application uses a package that does not start with <plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<buildArgs>--initialize-at-build-time=com.acme</buildArgs>
</configuration>
</plugin> Replace You will also need to change the runtime base image (the 2nd stage): FROM ghcr.io/oracle/oraclelinux:9-slim I'll file separate issues for |
Your solution works fine. Thank you! |
Environment Details
Problem Description
I tried to build docker image with Dockerfile.native, but it fails with the following error. The project is default state of quickstart created by helidon CLI. I hope build finished successfully.
The stacktrace is here:
Steps to reproduce
helidon init
. Options are default except flavor select. I tried both Helidon SE and Helidon MP.docker build -f Dockerfile.native .
The text was updated successfully, but these errors were encountered: