switch to on-push building

This commit is contained in:
2025-09-08 18:17:05 +02:00
parent 1611f7c58a
commit c5a8f0d343
8 changed files with 280 additions and 1 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# use python 3.12 as a base image
FROM docker.io/python:3.13-alpine
# use the latest version of uv, independently of the python version
COPY --from=ghcr.io/astral-sh/uv:0.8.15 /uv /uvx /bin/
WORKDIR /app
# copy the requirements and install them
COPY pyproject.toml uv.lock .
RUN uv sync --frozen
# copy the rest of the code
COPY config.yaml .
COPY config .
CMD ["uv", "run", "octodns", "--config-file", "config.yaml", "--doit"]