yt-dlp-bot/app_api/Dockerfile
Taras Terletsky 1a006fac45 Version 1.7.1
2025-02-01 18:43:36 +02:00

15 lines
535 B
Docker

FROM yt-base-image
COPY --from=yt-base-image /opt/venv /opt/venv
RUN --mount=from=ghcr.io/astral-sh/uv,source=/uv,target=/bin/uv \
--mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=./app_api/uv.lock,target=uv.lock \
--mount=type=bind,source=./app_api/pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-install-project --inexact
COPY ./app_api ./start.py ./
COPY ./yt_shared ./yt_shared
RUN --mount=from=ghcr.io/astral-sh/uv,source=/uv,target=/bin/uv \
uv pip install -e ./yt_shared