From 17fdfa5577102ce15e4fe886c1dde7f5f62da7f9 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, 2 Jul 2024 21:50:50 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]:=20=EB=8F=84=EC=BB=A4=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20layeredjar=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 4 +++- Dockerfile | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index baad6c5..b28c205 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -21,10 +21,12 @@ jobs: java-version: '17' distribution: 'adopt' - - name: Setup Gradle # Gradle을 설정합니다. + - name: Setup Gradle And Build # Gradle을 설정하고 빌드합니다. run: | chmod +x ./gradlew ./gradlew clean build + java -Djarmode=layertools -jar zzansuni-api-server/app/build/libs/app-0.0.1-SNAPSHOT.jar extract + - name: Set up Docker Buildx # Docker Buildx를 설정합니다. uses: docker/setup-buildx-action@v3 diff --git a/Dockerfile b/Dockerfile index da416bb..b53e293 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM openjdk:17-alpine 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 +COPY ./dependencies ./ +COPY ./spring-boot-loader ./ +COPY ./snapshot-dependencies ./ +COPY ./application ./ +ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "org.springframework.boot.loader.launch.JarLauncher"] \ No newline at end of file