init
Build and Push Container / build-and-push (push) Successful in 19s

This commit is contained in:
2026-08-01 19:07:05 -04:00
commit e360546de9
17 changed files with 15731 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.13-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 container (config is mounted at runtime)
COPY pyproject.toml uv.lock main.py unifi_firewall.py ip_lookup.py /app/
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /app
RUN uv sync --frozen
# Run the firewall update script
CMD ["uv", "run", "main.py"]