From e2a6ff98652b74fdb7218f8da2ce55ed8c5d856d Mon Sep 17 00:00:00 2001 From: yujamint Date: Sat, 29 Jun 2024 01:06:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20submodule=20=EC=97=85=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=20=EC=8B=A4=ED=8C=A8=ED=95=98=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yaml | 4 ++-- Dockerfile | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5d814a2..a9dd162 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -13,8 +13,8 @@ jobs: - name: 체크아웃 uses: actions/checkout@v4 with: - submodules: recursive - token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + submodules: true + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: JDK 11 설치 uses: actions/setup-java@v4 diff --git a/Dockerfile b/Dockerfile index 455c6e8..a575785 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ FROM amazoncorretto:11-alpine-jdk EXPOSE 8080 -COPY ./build/libs/Qtudy-server-0.0.1-SNAPSHOT.jar /app.jar -CMD ["java", "-jar", "app.jar", "--spring.profiles.active=stage"] +WORKDIR application +COPY ./dependencies ./ +COPY ./spring-boot-loader ./ +COPY ./snapshot-dependencies ./ +COPY ./application ./ +CMD ["java", "-Dspring.profiles.active=stage", "org.springframework.boot.loader.JarLauncher"]