From 89ab54a973026eeabd9fb8446bd1512f6ef17c7d Mon Sep 17 00:00:00 2001 From: donghyuun Date: Sat, 21 Sep 2024 15:53:30 +0900 Subject: [PATCH] [feat] Dockerfile add --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0abad9d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# 도커 이미지를 빌드할 때 필요한 커맨드를 가짐 + +# jdk21 image start +FROM openjdk:21 + +# 인자 설정 - JAR_File +ARG JAR_FILE=build/libs/*.jar + +# jar 파일 복제 +COPY ${JAR_FILE} app.jar + +# 실행 명령어 +ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file