Add default.nix and docker.nix
This commit is contained in:
parent
20170200aa
commit
02b23c7ae5
|
@ -0,0 +1,5 @@
|
|||
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
|
||||
|
||||
with pkgs;
|
||||
|
||||
poetry2nix.mkPoetryApplication { projectDir = ./.; }
|
|
@ -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" ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue