diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..d6b5c26 --- /dev/null +++ b/default.nix @@ -0,0 +1,5 @@ +{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }: + +with pkgs; + +poetry2nix.mkPoetryApplication { projectDir = ./.; } diff --git a/docker.nix b/docker.nix new file mode 100644 index 0000000..f7e11aa --- /dev/null +++ b/docker.nix @@ -0,0 +1,14 @@ +{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }: + +with pkgs; + +let locimend = callPackage ./default.nix { }; + +in { + docker = dockerTools.streamLayeredImage { + name = "locimend"; + contents = [ locimend ]; + config.Cmd = [ "api" ]; + }; + +}