docker build
This commit is contained in:
parent
cde2c24e27
commit
90d302ee70
|
@ -1 +1,2 @@
|
|||
/result-bin
|
||||
/result
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
{ system ? builtins.currentSystem }:
|
||||
|
||||
let
|
||||
pkgs = import <nixpkgs> { };
|
||||
callPackage = pkgs.lib.callPackageWith pkgs;
|
||||
printerfacts = callPackage ./default.nix { };
|
||||
|
||||
dockerImage = pkg:
|
||||
pkgs.dockerTools.buildLayeredImage {
|
||||
name = "xena/quickserv";
|
||||
tag = "latest";
|
||||
|
||||
contents = [ pkg ];
|
||||
|
||||
config = {
|
||||
Cmd = [ "/bin/quickserv" ];
|
||||
WorkingDir = "/";
|
||||
};
|
||||
};
|
||||
|
||||
in dockerImage printerfacts
|
Loading…
Reference in New Issue