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