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
This commit is contained in:
Vincent Ambo 2023-06-06 14:35:16 +03:00 committed by tazjin
parent 5dee4780da
commit 896034cc94
4 changed files with 905 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{ 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
];
};
}