project of gitlab-runner gateway
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
732B

  1. FROM oracle/graalvm-ce:20.2.0-java11 as builder
  2. ADD .mvn/ /build/.mvn
  3. ADD mvnw /build
  4. WORKDIR /build
  5. # Install GraalVM Native Image
  6. RUN gu install native-image; \
  7. ./mvnw --version \
  8. native-image --version
  9. COPY pom.xml /build
  10. RUN ./mvnw clean dependency:go-offline
  11. ADD src/ /build/src/
  12. ADD Makefile /build
  13. # download dependencies and compile into layer
  14. RUN ./mvnw -Pgraal,-no-graal compile
  15. # generate graalvm image into another layer
  16. RUN ./mvnw -Pgraal,-no-graal package
  17. #FROM debian:buster
  18. FROM scratch
  19. COPY --from=builder /build/target/wiki-project /wikiproject
  20. #COPY --from=builder /build/target/wiki-project-1.0-SNAPSHOT.jar /wiki-project-1.0-SNAPSHOT.jar
  21. COPY --from=builder /tmp /tmp
  22. ENTRYPOINT ["/wikiproject"]