Skip to content

Commit

Permalink
Merge pull request #24969 from KlemenDanfoss/instructions-update
Browse files Browse the repository at this point in the history
Use gradlew in native image docs
  • Loading branch information
glefloch authored Apr 21, 2022
2 parents 60196e1 + 9486032 commit c887322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/main/asciidoc/building-native-image.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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
Expand Down

0 comments on commit c887322

Please sign in to comment.