Files
homelab/active/podman_ddns/Containerfile
ducoterra 38b81fda9a
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 42s
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 28m2s
fix COPY for ddns service not working in Docker
2025-04-19 19:07:53 -04:00

23 lines
729 B
Docker

FROM python:3.12-slim-bookworm
# The installer requires curl (and certificates) to download the release archive
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates
# Download the latest installer
ADD https://astral.sh/uv/install.sh /uv-installer.sh
# Run the installer then remove it
RUN sh /uv-installer.sh && rm /uv-installer.sh
# Ensure the installed binary is on the `PATH`
ENV PATH="/root/.local/bin/:$PATH"
# Copy the project into the image
COPY update.py uv.lock pyproject.toml /app/
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /app
RUN uv sync --frozen
# Presuming there is a `my_app` command provided by the project
CMD ["uv", "run", "update.py"]