release
This commit is contained in:
@@ -1,26 +1,32 @@
|
||||
# deployment/container/Dockerfile
|
||||
# Vector DB API Service Image - 완전히 최소화된 버전
|
||||
# Vector DB API Service Image - 디버깅 버전 (사용자 정보 및 Poetry 환경 수정)
|
||||
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 - 완전히 최소화 (권한 변경 불필요)"
|
||||
LABEL version="1.0.6-debug-fixed"
|
||||
LABEL description="Vector DB API Service - Debug Version (사용자 정보 수정)"
|
||||
|
||||
# 작업 디렉토리 설정 (명확성과 안정성을 위해 명시적 선언)
|
||||
# 🔧 사용자 정보 수정 (root 권한으로)
|
||||
USER root
|
||||
|
||||
# passwd 파일에 appuser 정보 추가
|
||||
RUN echo "appuser:x:1000:1000:App User:/home/appuser:/bin/bash" >> /etc/passwd && \
|
||||
echo "appuser:x:1000:" >> /etc/group
|
||||
|
||||
# appuser로 전환
|
||||
USER appuser
|
||||
|
||||
# 작업 디렉토리 설정
|
||||
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"]
|
||||
|
||||
# 🛠️ 디버깅용: 컨테이너를 계속 실행 상태로 유지
|
||||
CMD ["sleep", "infinity"]
|
||||
#CMD ["poetry", "run", "python", "app/main.py"]
|
||||
|
||||
Reference in New Issue
Block a user