Skip to content

Commit

Permalink
Fix native build docker multi-stage instructions
Browse files Browse the repository at this point in the history
We need to ensure that maven can properly create its output

Fixes: #3114
  • Loading branch information
geoand committed Jul 5, 2019
1 parent cedc3f2 commit c6bc51d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/main/asciidoc/building-native-image-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ In this guide we will use the first stage to generate the native executable usin
FROM quay.io/quarkus/centos-quarkus-maven:{graalvm-version} AS build
COPY src /usr/src/app/src
COPY pom.xml /usr/src/app
USER root
RUN chown -R quarkus /usr/src/app
USER quarkus
RUN mvn -f /usr/src/app/pom.xml -Pnative clean package
## Stage 2 : create the docker final image
Expand Down

0 comments on commit c6bc51d

Please sign in to comment.