cicd-java-spring-boot/Dockerfile

5 lines
217 B
Docker
Raw Normal View History

2023-02-01 14:11:40 +00:00
FROM openjdk:11
2023-02-01 23:18:41 +00:00
ARG PROJECT_NAME
ARG PROJECT_VERSION
2023-02-02 00:45:44 +00:00
COPY build/libs/${PROJECT_NAME}-${PROJECT_VERSION}.jar ${PROJECT_NAME}-${PROJECT_VERSION}.jar
ENTRYPOINT ["java", "-jar", "/${PROJECT_NAME}-${PROJECT_VERSION}.jar"]