greenlightning.dockerfile 571 B

12345678910111213141516171819
  1. FROM maven:3.6.0-jdk-11 as maven
  2. WORKDIR /greenlightning
  3. COPY pom.xml pom.xml
  4. COPY src src
  5. RUN mvn clean install -q
  6. #COPY repo /usr/share/maven/ref/repository
  7. #RUN mvn clean install -q -Dmaven.repo.local=/usr/share/maven/ref/repository
  8. FROM azul/zulu-openjdk-alpine:11.0.1
  9. WORKDIR /greenlightning
  10. COPY --from=maven /greenlightning/target/greenlightning-test.jar app.jar
  11. #records to our log all the known network settings on the host connection
  12. #CMD sysctl -a && java -server -Xmx26g -XX:+UseNUMA -jar app.jar
  13. CMD java -server -Xmx26g -XX:+UseNUMA -jar app.jar