mp4 -4 mp3
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user