mat.services/nix/container.nix

14 lines
250 B
Nix
Raw Normal View History

2022-08-27 19:08:42 +00:00
{ dockerTools, caddy, caddyfile, site }:
dockerTools.buildLayeredImage {
name = site.pname;
tag = site.version;
config = {
2022-08-27 19:08:42 +00:00
Cmd = [ "${caddy}/bin/caddy" "run" "-config" "${caddyfile}" ];
Env = [
"SITE_ROOT=${site}"
];
};
}