cadey-printerfacts/default.nix
Christine Dodrill 14b02a0f80 yolo
2020-05-15 09:16:16 -04:00

20 lines
420 B
Nix

{ system ? builtins.currentSystem }:
let
sources = import ./nix/sources.nix;
pkgs = import <nixpkgs> { };
printerfacts = import ./printerfacts.nix { inherit pkgs sources; };
name = "xena/printerfacts-warp";
tag = "latest";
in pkgs.dockerTools.buildLayeredImage {
inherit name tag;
contents = [ printerfacts ];
config = {
Cmd = [ "${printerfacts}/bin/printerfacts" ];
WorkingDir = "/";
};
}