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.
This commit is contained in:
William Carroll 2020-01-31 16:30:56 +00:00
parent 755554176d
commit 184404d542

15
blog/deploy.nix Normal file
View file

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