diff --git a/docs/src/main/asciidoc/building-native-image.adoc b/docs/src/main/asciidoc/building-native-image.adoc index 4f9114a929bad..9289b6a9a3ec4 100644 --- a/docs/src/main/asciidoc/building-native-image.adoc +++ b/docs/src/main/asciidoc/building-native-image.adoc @@ -566,6 +566,8 @@ Sample Dockerfile for building with Gradle: ---- ## Stage 1 : build with maven builder image with native capabilities FROM quay.io/quarkus/ubi-quarkus-native-image:{graalvm-flavor} AS build +USER root +RUN microdnf install findutils COPY --chown=quarkus:quarkus gradlew /code/gradlew COPY --chown=quarkus:quarkus gradle /code/gradle COPY --chown=quarkus:quarkus build.gradle /code/ @@ -574,7 +576,7 @@ COPY --chown=quarkus:quarkus gradle.properties /code/ USER quarkus WORKDIR /code COPY src /code/src -RUN gradle -b /code/build.gradle buildNative +RUN ./gradlew build -Dquarkus.package.type=native ## Stage 2 : create the docker final image FROM quay.io/quarkus/quarkus-micro-image:1.0