This commit is contained in:
parent
ec827c4187
commit
1d6f488ebd
1 changed files with 27 additions and 27 deletions
|
@ -1,28 +1,28 @@
|
||||||
{
|
{
|
||||||
pkgs ? import <nixpkgs> {},
|
pkgs ? import <nixpkgs> {},
|
||||||
pkgs_linux ? import <nixpkgs> { system = "x86_64-linux"; },
|
pkgs_linux ? import <nixpkgs> { system = "x86_64-linux"; },
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
dockerTools.buildImage {
|
dockerTools.buildImage {
|
||||||
name = "default";
|
name = "default";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
|
|
||||||
copyToRoot = buildEnv {
|
copyToRoot = buildEnv {
|
||||||
name = "image-root";
|
name = "image-root";
|
||||||
pathsToLink = [ "/bin" ];
|
pathsToLink = [ "/bin" ];
|
||||||
paths = with pkgs_linux; [
|
paths = with pkgs_linux; [
|
||||||
coreutils
|
coreutils
|
||||||
u-root-cmds
|
u-root-cmds
|
||||||
bash
|
bash
|
||||||
nix
|
nix
|
||||||
nodejs
|
nodejs
|
||||||
podman
|
podman
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
User = "runner";
|
User = "runner";
|
||||||
Cmd = [ "${lib.getExe bashInteractive}" ];
|
Cmd = [ "${lib.getExe bashInteractive}" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue