Skip to content

Commit

Permalink
feat: add quarkus native dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ingvaar committed Jun 13, 2022
1 parent 71978b1 commit 1e41df9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Stage 1 : build
FROM quay.io/quarkus/ubi-quarkus-native-s2i:22.1-java11 AS build

COPY --chown=quarkus:quarkus . /usr/src/app

WORKDIR /usr/src/app

RUN ./gradlew build -Dquarkus.package.type=native --no-daemon

# Stage 2 : run
FROM quay.io/quarkus/quarkus-micro-image:1.0

WORKDIR /work/

COPY --from=build /usr/src/app/build/*-runner /work/application

EXPOSE 8080

CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]

0 comments on commit 1e41df9

Please sign in to comment.