젠킨스 수정
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -65,7 +65,7 @@ print('All files OK')
|
|||||||
|
|
||||||
echo "=== Building Docker Images ==="
|
echo "=== Building Docker Images ==="
|
||||||
cd ${DEPLOY_DIR}
|
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 {
|
steps {
|
||||||
sh """
|
sh """
|
||||||
cd ${DEPLOY_DIR}
|
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!"
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ RUN apt-get update && apt-get install -y \
|
|||||||
postgresql-client \
|
postgresql-client \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Python 의존성 설치
|
# Python 의존성 설치 (requirements.txt 변경 시에만 재설치 — Docker 캐시 활용)
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# 애플리케이션 코드 복사
|
# 애플리케이션 코드 복사 (코드 변경 시에만 이 레이어 갱신)
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# 포트 노출
|
# 포트 노출
|
||||||
|
|||||||
Reference in New Issue
Block a user