From b64a8bc3311c46a0d49cbba95f39b8dc46b476d6 Mon Sep 17 00:00:00 2001 From: kimdozzi Date: Tue, 14 May 2024 14:20:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20docker=20build=20and=20push=20script=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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