aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-04-26 15:42:39 +0000
committerFuwn <[email protected]>2021-04-26 15:42:39 +0000
commit7bd062230b43f8bd9cf2ec0f0db92704c5765f26 (patch)
tree78545fde636ec248aa039aa2ec1581b9b9055338 /default.nix
parentfmt: Change case (diff)
downloadapi-7bd062230b43f8bd9cf2ec0f0db92704c5765f26.tar.xz
api-7bd062230b43f8bd9cf2ec0f0db92704c5765f26.zip
major: :star:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..4f4ca20
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,19 @@
+{ system ? builtins.currentSystem }:
+
+let
+ sources = import ./nix/sources.nix;
+ pkgs = import sources.nixpkgs { };
+ senpy-api = import ./senpy-api.nix { inherit sources pkgs; };
+
+ name = "senpy-club/api";
+ tag = "latest";
+in pkgs.dockerTools.buildLayeredImage {
+ inherit name tag;
+ contents = [ senpy-api ];
+
+ config = {
+ Cmd = [ "/bin/senpy-api" ];
+ Env = [ ];
+ WorkingDir = "/";
+ };
+}