mp4 -4 mp3

This commit is contained in:
2026-02-18 16:37:45 +05:00
parent 74b32e869f
commit 654ad5a97e
11 changed files with 298 additions and 38 deletions

View File

@@ -1,13 +1,20 @@
# syntax=docker/dockerfile:1
FROM python:3.14-slim
# syntax=docker/dockerfile:1.5
FROM python:3.14-slim AS base
WORKDIR /app
COPY pyproject.toml .
RUN pip install --no-cache-dir uv \
&& uv venv --yes || true \
&& (uv sync --yes || uv install --yes)
# Устанавливаем системные зависимости
RUN apt-get update && apt-get install -y --no-install-recommends \
aria2 \
ca-certificates \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Копируем requirements и устанавливаем все Python-зависимости (по умолчанию все нужны)
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --no-cache-dir -r requirements.txt
COPY . ./api
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["python", "-m", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]