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:
parent
755554176d
commit
184404d542
1 changed files with 15 additions and 0 deletions
15
blog/deploy.nix
Normal file
15
blog/deploy.nix
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue