tvl-depot/blog/deploy.nix

16 lines
271 B
Nix
Raw Normal View History

{
pkgs ? import <nixpkgs> {},
briefcase ? import <briefcase> {},
...
}:
pkgs.dockerTools.buildLayeredImage {
name = "blog";
tag = "latest";
config.ExposedPorts = {
"4242" = {};
};
config.Cmd = [ "${briefcase.blog}/bin/server" ];
maxLayers = 120;
}