blog/nix/docker-builder.nix

44 lines
657 B
Nix
Raw Normal View History

2024-06-27 00:17:01 +00:00
{ dockerTools
, agda-bin
, corepack
, rsync
, openssh
, bash
, coreutils
, nodejs_20
2024-06-27 00:47:02 +00:00
, gnused
2024-06-27 01:29:52 +00:00
, pkgsLinux
2024-06-27 00:17:01 +00:00
}:
dockerTools.buildLayeredImage {
name = "blog-docker-builder";
contents = with dockerTools; [
agda-bin
corepack
rsync
openssh
bash
coreutils
nodejs_20
2024-06-27 00:47:02 +00:00
gnused
2024-06-27 00:17:01 +00:00
usrBinEnv
caCertificates
2024-06-27 01:29:52 +00:00
fakeNss
2024-06-27 00:17:01 +00:00
];
2024-06-27 01:29:52 +00:00
# fakeRootCommands = ''
# #!${pkgsLinux.runtimeShell}
# ${pkgsLinux.dockerTools.shadowSetup}
# groupadd -r builder
# useradd -r -g builder builder
# '';
2024-06-27 00:17:01 +00:00
}
# copyToRoot = with dockerTools; buildEnv {
# name = "blog-docker-builder-image-root";
# paths = [
# ];
# };
2024-06-26 23:18:25 +00:00