From b1a4d5bff83b5db68b36be127062a8d12730f852 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 16 Jan 2025 19:28:53 +0100 Subject: [PATCH] nix: Add a container-image Signed-off-by: Gergely Nagy --- flake.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/flake.nix b/flake.nix index e1459e2..b682b9c 100644 --- a/flake.nix +++ b/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"; + }; + }; + }; } );