1 2 3 4 5 6 7 8
FROM openjdk:11-jre EXPOSE 8090 ARG JAR_FILE=build/libs/sw-server.jar COPY ${JAR_FILE} app.jar ENTRYPOINT ["java", "-Dserver.port=8090", "-jar", "/app.jar"]