Skip to content

Commit

Permalink
feat: staging docker file 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
abc5259 committed Sep 7, 2024
1 parent f5de7c1 commit 82f253b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
8 changes: 8 additions & 0 deletions docker/staging/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 82f253b

Please sign in to comment.