aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 1b279f478e1b84db0ce3345f1b6874583df122a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ system ? builtins.currentSystem }:

let
  sources = import ./nix/sources.nix;
  pkgs = import sources.nixpkgs { };
  whirl = import ./whirl.nix { inherit sources pkgs; };

  name = "Whirlsplash/whirl";
  tag = "latest";

in pkgs.dockerTools.buildLayeredImage {
  inherit name tag;
  contents = [ whirl ];

  config = {
    Cmd = [ "/bin/whirl" ];
    Env = [ ];
    WorkingDir = "/";
  };
}