patronus (sha256:ba243269fd52dc42ca2f3aee3db9dfde55927e09317fb343d1d9f1b29b0acc6d)
Installation
docker pull git.canutethegreat.com/canutethegreat/patronus@sha256:ba243269fd52dc42ca2f3aee3db9dfde55927e09317fb343d1d9f1b29b0acc6dsha256:ba243269fd52dc42ca2f3aee3db9dfde55927e09317fb343d1d9f1b29b0acc6dImage layers
| WORKDIR / |
| COPY /gentoo/ / # buildkit |
| CMD ["/bin/bash"] |
| ARG PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c echo 'FEATURES="${FEATURES} -sandbox -usersandbox -ipc-sandbox -network-sandbox -pid-sandbox"' >> /etc/portage/make.conf # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c emerge-webrsync # buildkit |
| COPY gentoo /var/db/repos/patronus-overlay # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c mkdir -p /etc/portage/repos.conf && printf '[patronus]\nlocation = /var/db/repos/patronus-overlay\npriority = 50\n' > /etc/portage/repos.conf/patronus-overlay.conf # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c echo "net-firewall/patronus ${PATRONUS_USE} -openrc" > /etc/portage/package.use/patronus-docker-build # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c echo "net-firewall/patronus ~amd64" > /etc/portage/package.accept_keywords/patronus && echo "=net-firewall/patronus-9999 **" >> /etc/portage/package.accept_keywords/patronus # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c emerge --verbose --autounmask-write --onlydeps net-firewall/patronus && etc-update --automode -5 || true # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c emerge --verbose --onlydeps net-firewall/patronus # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup systemd /bin/sh -c echo "dev-lang/rust-bin ~amd64" >> /etc/portage/package.accept_keywords/patronus && emerge --verbose dev-lang/rust-bin dev-util/cargo-c # buildkit |
| ARG PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c echo 'FEATURES="${FEATURES} -sandbox -usersandbox -ipc-sandbox -network-sandbox -pid-sandbox"' >> /etc/portage/make.conf # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c emerge-webrsync # buildkit |
| COPY gentoo /var/db/repos/patronus-overlay # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c chmod -R a+rX /var/db/repos/patronus-overlay # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c mkdir -p /etc/portage/repos.conf && printf '[patronus]\nlocation = /var/db/repos/patronus-overlay\npriority = 50\n' > /etc/portage/repos.conf/patronus-overlay.conf # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c echo "net-firewall/patronus ${PATRONUS_USE} -openrc" > /etc/portage/package.use/patronus-docker-build # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c echo "net-firewall/patronus ~amd64" > /etc/portage/package.accept_keywords/patronus && echo "=net-firewall/patronus-9999 **" >> /etc/portage/package.accept_keywords/patronus # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c emerge --verbose --autounmask-write --onlydeps net-firewall/patronus && etc-update --automode -5 || true # buildkit |
| COPY . /usr/src/patronus # buildkit |
| RUN |1 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd /bin/sh -c cd /usr/src/patronus && cargo vendor /var/cache/distfiles/patronus-vendor 2>&1 | tail -5 || true # buildkit |
| ARG PATRONUS_COMMIT=5036e06e74d635f3b5c8671946dd910a34279349 |
| ARG PATRONUS_BRANCH=main |
| ENV EGIT_OVERRIDE_COMMIT_CANUTETHEGREAT_PATRONUS=5036e06e74d635f3b5c8671946dd910a34279349 EGIT_OVERRIDE_BRANCH_CANUTETHEGREAT_PATRONUS=main |
| RUN |3 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd PATRONUS_COMMIT=5036e06e74d635f3b5c8671946dd910a34279349 PATRONUS_BRANCH=main /bin/sh -c emerge --verbose net-firewall/patronus # buildkit |
| RUN |3 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd PATRONUS_COMMIT=5036e06e74d635f3b5c8671946dd910a34279349 PATRONUS_BRANCH=main /bin/sh -c useradd -r -u 1000 -m -s /bin/bash patronus 2>/dev/null || true && chown -R patronus:patronus /etc/patronus /var/lib/patronus /var/log/patronus 2>/dev/null || true && mkdir -p /etc/patronus/tls && chown patronus:patronus /etc/patronus/tls && mkdir -p /data /app/static && chown patronus:patronus /data /app /app/static # buildkit |
| RUN |3 PATRONUS_USE=web cli api dashboard nftables dhcp dns unbound vpn wireguard openvpn ipsec multiwan monitoring prometheus captive-portal vlan qos backup reverse-proxy kea-ddns systemd PATRONUS_COMMIT=5036e06e74d635f3b5c8671946dd910a34279349 PATRONUS_BRANCH=main /bin/sh -c emerge --verbose sys-libs/libcap && setcap cap_net_admin,cap_net_raw+eip "$(command -v nft)" && setcap cap_net_admin+eip "$(command -v wg)" && setcap cap_net_admin+eip "$(readlink -f "$(command -v ip)")" && getcap "$(readlink -f "$(command -v ip)")" | grep -q cap_net_admin && if ct=$(command -v conntrack); then setcap cap_net_admin+eip "$ct" && getcap "$ct"; fi && getcap "$(command -v nft)" "$(command -v wg)" # buildkit |
| ENV PATRONUS_AUTH_ETC=/var/lib/patronus/auth |
| ENV PATRONUS_HTTPS_PORT=8443 PATRONUS_HTTP_REDIRECT_PORT=0 |
| USER patronus |
| WORKDIR /home/patronus |
| EXPOSE [51820/udp 8443/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL curl -kf https://localhost:8443/ || exit 1] Interval:30s Timeout:3s StartPeriod:5s StartInterval:0s Retries:3} |
| CMD ["patronus-web"] |
| COPY --chown=patronus:patronus static /app/static # buildkit |
| LABEL org.opencontainers.image.revision=5036e06e74d635f3b5c8671946dd910a34279349 |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.revision | 5036e06e74d635f3b5c8671946dd910a34279349 |
Details
Versions (11)
View all
latest
2026-11-30
f601e598dd76418cf35334f044489ecbeaf22007
2026-11-30
ecffb8a005c93cb78c574c66ccd9115748180e84
2026-11-29
5036e06e74d635f3b5c8671946dd910a34279349
2026-11-29
6cdcf2dd426c4c552a2bd748eaa1489742cb24e6
2026-11-29