From 4c1e598a6dc86a21ae283a857581ff0f8d920bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B0=80=EC=98=81?= Date: Sat, 27 Jul 2024 14:23:20 +0900 Subject: [PATCH] fix: Dockerfile error --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7fd6f28..0221b38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM openjdk:17 -WORKDIR /app -COPY build/libs/myapp.jar app.jar +ARG JAR_FILE=build/libs/*.jar +COPY ${JAR_FILE} app.jar ENV TZ=Asia/Seoul -ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "/app/app.jar"] \ No newline at end of file +ENTRYPOINT ["java","-jar","/app.jar","-Duser.timezone=Asia/Seoul"] \ No newline at end of file