mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
docker: expose config.Cmd
as parameter
This commit is contained in:
parent
18dc96269d
commit
bb44347fac
1 changed files with 2 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
||||||
"org.opencontainers.image.version" = nix.version;
|
"org.opencontainers.image.version" = nix.version;
|
||||||
"org.opencontainers.image.description" = "Nix container image";
|
"org.opencontainers.image.description" = "Nix container image";
|
||||||
},
|
},
|
||||||
|
Cmd ? [ (lib.getExe bashInteractive) ],
|
||||||
# Default Packages
|
# Default Packages
|
||||||
nix,
|
nix,
|
||||||
bashInteractive,
|
bashInteractive,
|
||||||
|
@ -359,8 +360,7 @@ dockerTools.buildLayeredImageWithNixDb {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
inherit Labels;
|
inherit Cmd Labels;
|
||||||
Cmd = [ (lib.getExe bashInteractive) ];
|
|
||||||
User = "${toString uid}:${toString gid}";
|
User = "${toString uid}:${toString gid}";
|
||||||
Env = [
|
Env = [
|
||||||
"USER=${uname}"
|
"USER=${uname}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue