Files
transcript/Dockerfile
Julien Calixte 880c23dbe5 fix: upgrade yt-dlp to 2025.x to fix YouTube extraction
YouTube regularly breaks older yt-dlp versions. Bumped the minimum version
and added a separate Docker layer for yt-dlp so it can be upgraded without
busting the main pip cache.
2026-03-23 22:29:25 +01:00

23 lines
547 B
Docker

FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install yt-dlp last so it can be bumped independently without busting the cache above
RUN pip install --no-cache-dir --upgrade "yt-dlp>=2025.1"
COPY app/ ./app/
RUN mkdir -p /tmp/apoena-audio
ENV MAX_UPLOAD_SIZE_MB=500
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]