oci-images/postfix/default.nix
2025-04-19 17:49:26 +02:00

16 lines
360 B
Nix

{ pkgs ? import <nixpkgs> {} }:
pkgs.dockerTools.streamLayeredImage {
name = "postfix";
contents = [
(pkgs.fakeNss.override {
extraPasswdLines = ["postfix:x:999:999:postfix:/var/empty:/bin/sh"];
extraGroupLines = ["postfix:x:999:" "postdrop:x:998:"];
})
pkgs.postfix
];
config = {
Cmd = [ "${pkgs.postfix}/sbin/postfix" "start-fg" ];
};
}