From 4b55866f97b70aecb74a97bd1852bd0436b5a39c Mon Sep 17 00:00:00 2001 From: SoohoLee Date: Tue, 11 Jul 2023 00:05:22 +0900 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7cd5d3fe..edad6867 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,3 @@ -# Define a build stage -FROM openjdk:17-jdk-alpine AS build -WORKDIR /workspace/app - -# Copy your source code -COPY . . - -# Build the application -RUN ./gradlew clean build - # Start a new stage FROM openjdk:17-jdk-alpine @@ -20,7 +10,7 @@ RUN sed -i 's/profiler.transport.grpc.collector.ip=127.0.0.1/profiler.transport. RUN sed -i 's/profiler.collector.ip=127.0.0.1/profiler.collector.ip=10.41.183.156/g' /usr/local/pinpoint-agent-2.5.2/pinpoint-root.config # Copy the built JAR from the build stage -COPY --from=build /workspace/app/build/libs/*.jar app.jar +COPY build/libs/*.jar app.jar # Expose the required port EXPOSE 8080 From 99d83d0df8aee976b85e2a698cd0ece0f200a984 Mon Sep 17 00:00:00 2001 From: SoohoLee Date: Tue, 11 Jul 2023 00:05:42 +0900 Subject: [PATCH 2/2] Update work-2.yml --- .github/workflows/work-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/work-2.yml b/.github/workflows/work-2.yml index 914953d2..49840584 100644 --- a/.github/workflows/work-2.yml +++ b/.github/workflows/work-2.yml @@ -67,7 +67,7 @@ jobs: uses: actions/download-artifact@v3 with: name: build-artifact - path: build + path: . - name: Docker Buildx 설치 uses: docker/setup-buildx-action@v2 - name: ghcr.io 로그인