nix-configs/docker/hello-docker.nix
Aaron Honeycutt 5abaab4e21
Some checks failed
nix CI format / amd64 (pull_request) Failing after 24m20s
format hello-docker
2026-01-11 09:19:06 -07:00

25 lines
404 B
Nix

let
pkgs = import <nixpkgs> {};
in
pkgs.dockerTools.buildImage {
name = "hello";
tag = "latest";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [
pkgs.hello
pkgs.busybox
];
pathsToLink = ["/bin"];
};
runAsRoot = ''
mkdir -p /data
'';
config = {
Cmd = ["/bin/hello"];
WorkingDir = "/data";
};
}