nix: Add a container-image

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2025-01-16 19:28:53 +01:00
parent 598338094c
commit b1a4d5bff8
No known key found for this signature in database

View file

@ -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";
};
};
};
}
);