blog/nix/docker-builder.nix

46 lines
679 B
Nix
Raw Normal View History

2024-06-27 00:17:01 +00:00
{ dockerTools
2024-10-21 10:39:50 +00:00
, awscli2
2024-06-27 00:17:01 +00:00
, 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
awscli2
2024-06-27 00:17:01 +00:00
bash
caCertificates
corepack
2024-06-27 00:17:01 +00:00
coreutils
fakeNss
2024-06-27 00:47:02 +00:00
gnused
nodejs_20
openssh
rsync
2024-06-27 00:17:01 +00:00
usrBinEnv
];
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