From 78a2dffd078871e8b52da8ef3c7443cb7db4546c Mon Sep 17 00:00:00 2001 From: parkgeonwoo <50697545+Parkgeonmoo@users.noreply.github.com> Date: Mon, 25 Dec 2023 19:10:16 +0900 Subject: [PATCH] =?UTF-8?q?Refact=20:=20CI/CD=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/github-actions.yml | 2 ++ Dockerfile | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index a83adfd..6384b86 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -12,6 +12,8 @@ jobs: uses: actions/setup-java@v2 with: java-version: 17 + distribution: 'adopt' # or 'temurin' or 'zulu' + - name: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/Dockerfile b/Dockerfile index cbc366b..49ebc6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ FROM openjdk:17-jdk-slim CMD ["./mvnw", "clean", "package"] -ARG JAR_FILE_PATH=build/libs/*.jar -ENTRYPOINT ["find", ".", "-name", "*.jar"] -COPY ${JAR_FILE_PATH} app.jar +COPY build/libs/*.jar app.jar ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file