diff --git a/imperative/helidon/Dockerfile.native b/imperative/helidon/Dockerfile.native index 18529aa..376e1d9 100644 --- a/imperative/helidon/Dockerfile.native +++ b/imperative/helidon/Dockerfile.native @@ -23,12 +23,12 @@ RUN mvn package -Pnative-image -Dnative.image.skip -Dmaven.test.skip -Declipseli # Do the Maven build! # Incremental docker builds will resume here when you change sources ADD src src -RUN mvn package -Pnative-image -Dnative.image.buildStatic -DskipTests +RUN mvn package -Pnative-image -DskipTests RUN echo "done!" # 2nd stage, build the runtime image -FROM scratch +FROM container-registry.oracle.com/os/oraclelinux:9-slim WORKDIR /helidon # Copy the binary built in the 1st stage diff --git a/imperative/helidon/src/main/resources/META-INF/native-image/com/example/rest/helidon/reflect-config.json b/imperative/helidon/src/main/resources/META-INF/native-image/com/example/rest/helidon/reflect-config.json new file mode 100644 index 0000000..5dcc079 --- /dev/null +++ b/imperative/helidon/src/main/resources/META-INF/native-image/com/example/rest/helidon/reflect-config.json @@ -0,0 +1,10 @@ +[ + { + "name": "io.helidon.microprofile.jwt.auth.JwtAuthAnnotationAnalyzer", + "queryAllPublicMethods": true + }, + { + "name": "io.helidon.security.abac.role.RoleAnnotationAnalyzer", + "queryAllPublicMethods": true + } +]