- новый api/: /pipeline/process (yt-dlp, субтитры или Vosk, LLM/экстрактивная суммаризация), /videos, /llm; старый код перенесён в api_legacy/ - web/: Flet UI (flet 0.28.3 + flet-web, порт 8550) - Dockerfile.api: ffmpeg слоем из mwader/static-ffmpeg, pip с кэш-маунтом - requirements/pyproject: убраны moviepy, imageio-ffmpeg, битый asyncio - README с инструкцией запуска и загрузкой Vosk-модели Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
576 B
Docker
17 lines
576 B
Docker
# syntax=docker/dockerfile:1.5
|
|
FROM python:3.14-slim
|
|
WORKDIR /app
|
|
|
|
# Static ffmpeg/ffprobe as a cached image layer — no apt, no slow mirror downloads
|
|
COPY --from=mwader/static-ffmpeg:7.1 /ffmpeg /ffprobe /usr/local/bin/
|
|
|
|
# Deps first for layer caching; BuildKit cache mount speeds up rebuilds
|
|
COPY requirements.txt ./
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
pip install -r requirements.txt
|
|
|
|
# Application code (data/, models/, pg_data/ excluded via .dockerignore)
|
|
COPY . .
|
|
|
|
CMD ["python", "-m", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]
|