mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2026-02-04 01:50:11 +08:00
15 lines
535 B
Docker
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
|