All checks were successful
Push Docker image / build (push) Successful in 3m23s
25 lines
611 B
Docker
25 lines
611 B
Docker
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
|
|
|
WORKDIR /app
|
|
|
|
ENV UV_COMPILE_BYTECODE=1
|
|
ENV UV_LINK_MODE=copy
|
|
|
|
RUN apt update -qq && apt install -y ffmpeg
|
|
|
|
RUN --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 --frozen --no-install-project --no-dev
|
|
|
|
ADD . /app
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
uv sync --frozen --no-dev
|
|
|
|
ENV PATH="/app/.venv/bin:$PATH"
|
|
ENV BOTBOTBOT_CONFIG="/config/config.toml"
|
|
|
|
ENTRYPOINT []
|
|
|
|
CMD ["uv", "run", "python", "-m", "botbotbot"]
|