Commit Diff


commit - 99a8e5cbc153ff87ec8e2f8f0f2f98922d05baf8
commit + 3ba41c464f9b3c51839973a95f787527ff847665
blob - c0ef245549f5f5cc43097139951f28deb3905e6d
blob + 66b165f768c52a86dd4b0121a2503095c024f02e
--- flake.nix
+++ flake.nix
@@ -173,6 +173,13 @@
           --chdir "$out/lib/corpus"
       '';
     };
+    dockerImage = pkgs.dockerTools.buildLayeredImage {
+      name = "corpus";
+      tag = corpus.version;
+      contents = [corpus];
+      extraCommands = "mkdir -p tmp";
+      config.Cmd = ["${corpus}/bin/corpus-server"];
+    };
   in {
     devShells.${system}.default = pkgs.mkShell {
       name = "corpus";
@@ -187,6 +194,9 @@
       ];
     };
 
-    packages.${system}.default = corpus;
+    packages.${system} = {
+      default = corpus;
+      container = dockerImage;
+    };
   };
 }
blob - 87d81ab1413f1e02bac9b4f1f9012dd92424b243
blob + 7ff698b8c73004d429f763688464dceae6d6285a
--- justfile
+++ justfile
@@ -74,7 +74,7 @@ check:
     statix check .
 
 # Manage the container image (build, load, push)
-container command:
+oci command:
     @if [ "{{ command }}" = "build" ]; then \
         nix build .#container; \
     elif [ "{{ command }}" = "load" ]; then \