From e06749ae8c602e7bfa3c749146c5d5ddb07642be Mon Sep 17 00:00:00 2001 From: donghyuun Date: Sat, 21 Sep 2024 02:54:24 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20Dockerfile=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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