- новый 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>
15 lines
357 B
Docker
15 lines
357 B
Docker
# syntax=docker/dockerfile:1.5
|
|
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
|
|
# install deps separately for layer caching (flet is ~100 MB)
|
|
COPY web/requirements.txt /tmp/web-req.txt
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
pip install --no-cache-dir -r /tmp/web-req.txt
|
|
|
|
COPY web /app/web
|
|
ENV PYTHONPATH=/app
|
|
|
|
EXPOSE 8550
|
|
CMD ["python", "-m", "web.main"]
|