From 67acae2ee9a7168f74aca1d244df7e71b52a49ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=ED=99=8D=EC=84=9D?= <78216059+bayy1216@users.noreply.github.com> Date: Tue, 28 May 2024 23:10:38 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]:=20=EB=8F=84=EC=BB=A4=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++++ build.gradle | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8d7883d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM amd64/amazoncorretto:17 +WORKDIR /usr/src/app +ARG JAR_FILE=zzansuni-api-server/app/build/libs/*.jar +COPY ${JAR_FILE} app.jar +ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "app.jar"] \ No newline at end of file diff --git a/build.gradle b/build.gradle index 01382e6..614c22e 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,6 @@ plugins { allprojects { group = 'org.haedal' version = '0.0.1-SNAPSHOT' - sourceCompatibility = '17' repositories { mavenCentral() @@ -29,6 +28,7 @@ subprojects { apply plugin: 'io.spring.dependency-management' // 서브 프로젝트 블록안에서 적용 apply plugin: 'org.springframework.boot' // 서브 프로젝트 블록안에서 적용 + sourceCompatibility = '17' configurations { compileOnly {