Add nix container build for ntfy
All checks were successful
Build Container / build (push) Successful in 8s
Build Container (Nix) / build (push) Successful in 14s

Uses nixpkgs ntfy-sh package instead of the multi-stage Dockerfile build.
After merge, release with: mise run container-tag-and-release ntfy v1.1.0
Then update argocd/manifests/ntfy/deployment.yaml image to the -nix tag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-02-19 11:01:55 -08:00
commit 2d7a353751

View file

@ -0,0 +1,27 @@
# Nix-built ntfy push notification server
# Replaces the multi-stage Dockerfile (Node + Go + Alpine) with nixpkgs ntfy-sh
# Built with dockerTools.buildLayeredImage for efficient layer caching
{ pkgs ? import <nixpkgs> { } }:
pkgs.dockerTools.buildLayeredImage {
name = "blumeops/ntfy";
tag = "latest";
contents = [
pkgs.ntfy-sh
pkgs.cacert
pkgs.tzdata
];
config = {
Entrypoint = [ "${pkgs.ntfy-sh}/bin/ntfy" ];
Env = [
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
"TZDIR=${pkgs.tzdata}/share/zoneinfo"
];
ExposedPorts = {
"80/tcp" = { };
};
User = "65534";
};
}