diff --git a/Dockerfile b/Dockerfile index 925337c0..7347f6a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ # Start with a base image containing Java runtime. -FROM openjdk:17 +FROM openjdk:17-jdk # The application's jar file. -ARG JAR_FILE= build/libs +ARG JAR_FILE=build/libs/gitget-0.0.1-SNAPSHOT.jar # Add the application's jar to the container. -ADD ${JAR_FILE}/gitget-0.0.1-SNAPSHOT.jar app.jar +COPY ${JAR_FILE} app.jar # Run the jar file. -ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file +CMD ["java", "-jar", "app.jar"] \ No newline at end of file