tvl-depot/blog/deploy.nix
William Carroll 184404d542 Add deploy.nix to blog
Adding a deploy.nix to output docker images based on the <briefcase>.blog
derivation. See the deploy/README.md docs for more information.
2020-01-31 16:30:56 +00:00

15 lines
271 B
Nix

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