FROM java:8 EXPOSE 8080 ARG JAR_FILE ADD target/${JAR_FILE} /file-collect.jar ENTRYPOINT ["java", "-jar","/file-collect.jar"]