micronaut.dockerfile 399 B

12345678910
  1. FROM adoptopenjdk/maven-openjdk11:latest as maven
  2. WORKDIR /micronaut
  3. COPY src src
  4. COPY pom.xml pom.xml
  5. RUN mvn package -q
  6. FROM adoptopenjdk/openjdk11:jdk-11.0.3_7-slim
  7. WORKDIR /micronaut
  8. COPY --from=maven /micronaut/target/hello-micronaut-0.1.jar app.jar
  9. CMD ["java", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-Dmicronaut.environments=benchmark", "-Dlog-root-level=OFF", "-jar", "app.jar"]