Dockerfile-promo-seo 386 B

123456789
  1. FROM openjdk:8-jre
  2. ARG DB_CLUSTER=mongodb1:27017,mongodb2:27018,mongodb3:27019
  3. ARG SERVER_PORT=9000
  4. ARG CONTENT_DIR=web-registration/promo/build/libs
  5. HEALTHCHECK --start-period=30s --interval=15s --timeout=5s --retries=2 CMD curl -f 127.0.0.1:${SERVER_PORT} || exit 1
  6. COPY ${CONTENT_DIR}/promo-0.0.1-SNAPSHOT.war /
  7. #COPY version /tmp/
  8. CMD ["java", "-jar", "/promo-0.0.1-SNAPSHOT.war"]