Skip to content

Commit 62db6df

Browse files
authored
fix: 헬스체크 경로 수정 및 이미지 정리 범위 한정 (#60)
1 parent 581dc91 commit 62db6df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ jobs:
7979
TARGET_USER: ${{ secrets.RASPI_TARGET_USER }}
8080
run: |
8181
ssh -o StrictHostKeyChecking=no -o ProxyJump=$JUMP_USER@$JUMP_HOST:$JUMP_PORT $TARGET_USER@$TARGET_HOST /bin/bash << ENDSSH
82-
docker image prune -af --filter "until=72h" || true
82+
docker image prune -af --filter "until=72h" --filter "reference=ghcr.io/wisoft-prepair/backend-java*" || true
8383
ENDSSH

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ EXPOSE 7300
3434

3535
# 컨테이너 레벨 헬스체크 (Docker daemon의 status 표시용)
3636
HEALTHCHECK --interval=24h --timeout=10s --start-period=40s --retries=3 \
37-
CMD curl -sf http://localhost:7300/health || exit 1
37+
CMD curl -sf http://localhost:7300/actuator/health || exit 1
3838

3939
# 실행
4040
ENTRYPOINT ["java", "-jar", "app.jar"]

0 commit comments

Comments
 (0)