21 lines
441 B
Nix
21 lines
441 B
Nix
|
{ system ? builtins.currentSystem }:
|
||
|
|
||
|
let
|
||
|
sources = import ./nix/sources.nix;
|
||
|
pkgs = import <nixpkgs> { };
|
||
|
printerfacts = import ./default.nix { inherit pkgs sources; };
|
||
|
|
||
|
name = "xena/printerfacts";
|
||
|
tag = "latest";
|
||
|
|
||
|
in pkgs.dockerTools.buildLayeredImage {
|
||
|
inherit name tag;
|
||
|
contents = [ printerfacts ];
|
||
|
|
||
|
config = {
|
||
|
Cmd = [ "${printerfacts}/bin/printerfacts" ];
|
||
|
Env = [ "RUST_LOG=info" ];
|
||
|
WorkingDir = "/";
|
||
|
};
|
||
|
}
|