- FastAPI 백엔드 (audio-studio-api) - Next.js 프론트엔드 (audio-studio-ui) - Qwen3-TTS 엔진 (audio-studio-tts) - MusicGen 서비스 (audio-studio-musicgen) - Docker Compose 개발/운영 환경 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
743 B
Docker
34 lines
743 B
Docker
# 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"]
|