about summary refs log tree commit diff
path: root/users/grfn/xanthous/server/docker.nix
blob: 09054cb00fcf6d4b3854288226173919b30c2817 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ depot ? import ../../../.. { }
, pkgs ? depot.third_party.nixpkgs
, ...
}:

let
  inherit (depot.users.grfn) xanthous;
  xanthous-server = xanthous.server;
in
pkgs.dockerTools.buildLayeredImage {
  name = "xanthous-server";
  tag = "latest";
  contents = [ xanthous xanthous-server ];
  config = {
    Cmd = [
      "${xanthous-server}/bin/xanthous-server"
      "--xanthous-binary-path"
      "${xanthous}/bin/xanthous"
    ];
  };
}