mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
15 lines
449 B
Docker
15 lines
449 B
Docker
FROM python:3.13
|
|
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PYTHON_DOWNLOADS=0
|
|
WORKDIR /app
|
|
|
|
RUN --mount=from=ghcr.io/astral-sh/uv,source=/uv,target=/bin/uv \
|
|
--mount=type=cache,target=/root/.cache/uv \
|
|
--mount=type=bind,source=uv.lock,target=uv.lock \
|
|
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
|
uv sync --locked
|
|
ENV PATH="/app/.venv/bin:$PATH"
|
|
|
|
COPY . .
|
|
|
|
CMD ["fastapi", "run", "scanner", "--port", "4389"]
|