This commit is contained in:
hiondal
2025-06-15 20:19:52 +00:00
parent 67d4d69bc4
commit 42dd563205
5 changed files with 201 additions and 67 deletions
+10 -6
View File
@@ -1,17 +1,15 @@
# deployment/container/Dockerfile
# Vector DB API Service Image - 디버깅 버전 (사용자 정보 및 Poetry 환경 수정)
ARG BASE_IMAGE=vector-api-base:latest
# Vector DB API Service Image - 수정 버전
ARG BASE_IMAGE=vector-api-base:optimized-dotenv-0.9.9-v1.0
FROM ${BASE_IMAGE}
# 메타데이터
LABEL maintainer="admin@example.com"
LABEL version="1.0.6-debug-fixed"
LABEL description="Vector DB API Service - Debug Version (사용자 정보 수정)"
LABEL version="1.0.7-fixed"
LABEL description="Vector DB API Service - Fixed Poetry Environment"
# 🔧 사용자 정보 수정 (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
@@ -21,6 +19,12 @@ USER appuser
# 작업 디렉토리 설정
WORKDIR /home/appuser
# 🔧 Poetry 프로젝트 파일 복사 (중요!)
COPY pyproject.toml poetry.lock ./
# 🔧 Base Image의 패키지를 현재 프로젝트에서 사용 가능하도록 설정
RUN poetry install --only=main --no-root
# 🚀 애플리케이션 소스 코드 복사
COPY app/ app/