# Audio Studio API Server - Dockerfile FROM python:3.11-slim # 환경 변수 ENV PYTHONUNBUFFERED=1 ENV PYTHONDONTWRITEBYTECODE=1 # 시스템 패키지 설치 RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ libsndfile1 \ && rm -rf /var/lib/apt/lists/* # 작업 디렉토리 WORKDIR /app # 의존성 설치 (캐시 활용) COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # 소스 코드 복사 COPY app/ ./app/ # 포트 노출 EXPOSE 8000 # 헬스체크 HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ CMD curl -f http://localhost:8000/health || exit 1 # 서버 실행 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]