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:
parent
5dee4780da
commit
896034cc94
4 changed files with 905 additions and 0 deletions
16
corp/rih/backend/default.nix
Normal file
16
corp/rih/backend/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue