Dockerfile 305 B

12345678
  1. FROM java:8
  2. EXPOSE 8080
  3. ARG JAR_FILE
  4. ADD target/${JAR_FILE} /file-collect.jar
  5. ADD target/lib /lib
  6. ADD src/main/resources/application.yml /application.yml
  7. ADD src/main/resources/application-docker.yml /application-docker.yml
  8. ENTRYPOINT ["java", "-jar","-Dspring.profiles.active=docker","/file-collect.jar"]