music-lab 서비스에 OpenAI/YouTube OAuth 환경변수 + Claude 모델 변수 추가. agent-office에도 CLAUDE_HAIKU_MODEL/CLAUDE_SONNET_MODEL 노출. Alpine 기반 music-lab 이미지에 ttf-dejavu + fontconfig 설치하고 PIL이 참조하는 Debian 스타일 경로(/usr/share/fonts/truetype/dejavu)로 심볼릭 링크 생성하여 썸네일/그라디언트 폰트 로딩 보장. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
624 B
Docker
19 lines
624 B
Docker
FROM python:3.12-alpine
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
# ffmpeg for audio/video processing, ttf-dejavu + fontconfig for PIL overlays.
|
|
# Alpine installs DejaVu fonts to /usr/share/fonts/dejavu/, but app code
|
|
# references the Debian-style path; symlink for compatibility.
|
|
RUN apk add --no-cache ffmpeg ttf-dejavu fontconfig \
|
|
&& mkdir -p /usr/share/fonts/truetype \
|
|
&& ln -sf /usr/share/fonts/dejavu /usr/share/fonts/truetype/dejavu \
|
|
&& fc-cache -f
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|