blog/nix/docker-builder.nix

48 lines
717 B
Nix
Raw Normal View History

2024-06-27 00:17:01 +00:00
{ dockerTools
, agda-bin
, bash
2024-10-21 11:42:10 +00:00
, corepack
2024-06-27 00:17:01 +00:00
, coreutils
2024-10-21 11:42:10 +00:00
, gitMinimal
2024-06-27 00:47:02 +00:00
, gnused
2024-10-21 11:42:10 +00:00
, minio-client
, nodejs_20
, openssh
2024-06-27 01:29:52 +00:00
, pkgsLinux
2024-10-21 11:42:10 +00:00
, rsync
2024-06-27 00:17:01 +00:00
}:
dockerTools.buildLayeredImage {
name = "blog-docker-builder";
contents = with dockerTools; [
agda-bin
bash
caCertificates
corepack
2024-06-27 00:17:01 +00:00
coreutils
fakeNss
2024-10-21 11:42:10 +00:00
gitMinimal
2024-06-27 00:47:02 +00:00
gnused
2024-10-21 11:42:10 +00:00
minio-client
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