tvl-depot/corp/rih/backend/default.nix
Vincent Ambo 896034cc94 chore(corp/rih): bootstrap backend application with rouille
Change-Id: I48b0c432a843db5a44b3a3de09f18e1232644a44
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8715
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2023-06-06 11:43:00 +00:00

16 lines
299 B
Nix

{ depot, pkgs, ... }:
depot.nix.readTree.drvTargets rec {
binary = depot.third_party.naersk.buildPackage {
src = ./.;
};
image = pkgs.dockerTools.buildLayeredImage {
name = "rih-backend";
config.Cmd = [ "${binary}/bin/rih-backend" ];
contents = [
binary
];
};
}