From 82f253b312560a6920743d50e07ea48d8ac8c900 Mon Sep 17 00:00:00 2001 From: LeeJaeHoon Date: Sat, 7 Sep 2024 22:21:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20staging=20docker=20file=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/staging-deploy.yml | 2 +- docker/staging/Dockerfile | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docker/staging/Dockerfile diff --git a/.github/workflows/staging-deploy.yml b/.github/workflows/staging-deploy.yml index a32795f..948bd9d 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -38,7 +38,7 @@ jobs: password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: API 서버 Docker 이미지 생성 - run: docker build -t dnd-server -f ./docker/Dockerfile . + run: docker build -t dnd-server -f ./docker/staging/Dockerfile . - name: Docker 이미지에 Tag 붙이기 run: | diff --git a/docker/staging/Dockerfile b/docker/staging/Dockerfile new file mode 100644 index 0000000..ed080dc --- /dev/null +++ b/docker/staging/Dockerfile @@ -0,0 +1,8 @@ +FROM eclipse-temurin:17-jdk-alpine +COPY ./build/libs/*SNAPSHOT.jar project.jar +ENTRYPOINT ["java", \ + "-javaagent:/pinpoint-agent/pinpoint-bootstrap-2.5.3.jar", \ + "-Dpinpoint.agentId=aws-ec2-1", \ + "-Dpinpoint.applicationName=api-server", \ + "-Dspring.profiles.active=staging", \ + "-jar", "/app.jar"] \ No newline at end of file