27 lines
806 B
Docker
27 lines
806 B
Docker
# deployment/container/Dockerfile
|
|
# Vector DB API Service Image - 완전히 최소화된 버전
|
|
ARG BASE_IMAGE=vector-api-base:latest
|
|
FROM ${BASE_IMAGE}
|
|
|
|
# 메타데이터
|
|
LABEL maintainer="admin@example.com"
|
|
LABEL version="1.0.6"
|
|
LABEL description="Vector DB API Service - 완전히 최소화 (권한 변경 불필요)"
|
|
|
|
# 작업 디렉토리 설정 (명확성과 안정성을 위해 명시적 선언)
|
|
WORKDIR /home/appuser
|
|
|
|
# 🚀 애플리케이션 소스 코드 복사 (상대경로로 간단하게)
|
|
COPY app/ app/
|
|
|
|
# 포트 노출
|
|
EXPOSE 8000
|
|
|
|
# 헬스체크
|
|
HEALTHCHECK --interval=30s --timeout=15s --start-period=60s --retries=3 \
|
|
CMD poetry run python -c "import app.main; print('✅ 헬스체크 성공')" || exit 1
|
|
|
|
# 애플리케이션 실행
|
|
CMD ["poetry", "run", "python", "app/main.py"]
|
|
|