1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

docker: add basics OpenContainers labels

This commit is contained in:
Pol Dellaiera 2025-06-15 22:58:26 +02:00
parent e73fcd008a
commit 18dc96269d

View file

@ -19,6 +19,13 @@
gid ? 0,
uname ? "root",
gname ? "root",
Labels ? {
"org.opencontainers.image.title" = "Nix";
"org.opencontainers.image.source" = "https://github.com/NixOS/nix";
"org.opencontainers.image.vendor" = "Nix project";
"org.opencontainers.image.version" = nix.version;
"org.opencontainers.image.description" = "Nix container image";
},
# Default Packages
nix,
bashInteractive,
@ -352,6 +359,7 @@ dockerTools.buildLayeredImageWithNixDb {
'';
config = {
inherit Labels;
Cmd = [ (lib.getExe bashInteractive) ];
User = "${toString uid}:${toString gid}";
Env = [