mirror of
https://git.madhouse-project.org/algernon/iocaine.git
synced 2025-01-22 10:36:19 +01:00
nix: Add a container-image
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
parent
598338094c
commit
b1a4d5bff8
1 changed files with 19 additions and 0 deletions
19
flake.nix
19
flake.nix
|
@ -64,6 +64,25 @@
|
|||
(self.overlays.default pkgs pkgs)
|
||||
// {
|
||||
default = self.packages.${pkgs.hostPlatform.system}.iocaine;
|
||||
container-image = pkgs.dockerTools.buildImage {
|
||||
name = "git.madhouse-project.org/algernon/iocaine";
|
||||
tag = "latest";
|
||||
copyToRoot = pkgs.buildEnv {
|
||||
name = "image-root";
|
||||
paths = [ self.packages.${pkgs.hostPlatform.system}.iocaine ];
|
||||
pathsToLink = [ "/bin" ];
|
||||
};
|
||||
config = {
|
||||
Entrypoint = [ "/bin/iocaine" ];
|
||||
Labels = {
|
||||
"org.opencontainers.image.description" = "The deadliest poison known to AI";
|
||||
"org.opencontainers.image.source" = "https://git.madhouse-project.org/algernon/iocaine";
|
||||
"org.opencontainers.image.url" = "https://git.madhouse-project.org/algernon/iocaine";
|
||||
"org.opencontainers.image.authors" = "Gergely Nagy";
|
||||
"org.opencontainers.image.licenses" = "MIT";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue