From ef2fb75848b9b9ee274ebe140fbc34b3ced2ec39 Mon Sep 17 00:00:00 2001 From: shuim Date: Thu, 2 Apr 2026 11:31:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=A0=ED=82=A8=EC=8A=A4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 4 ++-- backend/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2ff468d..ad116c1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -65,7 +65,7 @@ print('All files OK') echo "=== Building Docker Images ===" cd ${DEPLOY_DIR} - docker-compose build --no-cache backend mcp-server frontend + docker-compose build backend mcp-server frontend """ } } @@ -100,7 +100,7 @@ print('All files OK') steps { sh """ cd ${DEPLOY_DIR} - docker-compose exec -T backend alembic upgrade head 2>/dev/null || echo "Migration skipped (no pending)" + docker-compose exec -T backend alembic upgrade head || echo "WARNING: Migration failed!" """ } } diff --git a/backend/Dockerfile b/backend/Dockerfile index 5d4c06c..a2523d6 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -11,11 +11,11 @@ RUN apt-get update && apt-get install -y \ postgresql-client \ && rm -rf /var/lib/apt/lists/* -# Python 의존성 설치 +# Python 의존성 설치 (requirements.txt 변경 시에만 재설치 — Docker 캐시 활용) COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -# 애플리케이션 코드 복사 +# 애플리케이션 코드 복사 (코드 변경 시에만 이 레이어 갱신) COPY . . # 포트 노출