16 lines
360 B
Nix
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" ];
|
|
};
|
|
}
|