1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 13:51:16 +02:00

Merge pull request #13366 from drupol/push-smvorxlvxusx

docker: add basics OpenContainers labels
This commit is contained in:
John Ericson 2025-06-16 18:11:53 -04:00 committed by GitHub
commit cdb417854b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,14 @@
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";
},
Cmd ? [ (lib.getExe bashInteractive) ],
# Default Packages
nix,
bashInteractive,
@ -352,7 +360,7 @@ dockerTools.buildLayeredImageWithNixDb {
'';
config = {
Cmd = [ (lib.getExe bashInteractive) ];
inherit Cmd Labels;
User = "${toString uid}:${toString gid}";
Env = [
"USER=${uname}"