ci: add docker image build
Some checks failed
Build a docker image. / build-docker-image (push) Failing after 4s

This commit is contained in:
2026-03-24 23:59:22 +01:00
parent a5ded91f8a
commit 4769584a4a
4 changed files with 56 additions and 0 deletions

27
nix/docker.nix Normal file
View File

@@ -0,0 +1,27 @@
{
buildEnv,
dockerTools,
runtimeShell,
tag ? "latest",
mosh-me,
...
}:
dockerTools.buildImage {
name = "mosh-me";
inherit tag;
created = "now";
copyToRoot = buildEnv {
name = "image-root";
paths = [mosh-me];
pathsToLink = ["/bin"];
};
runAsRoot = ''
#!${runtimeShell}
mkdir -p /pwd
'';
config = {
Cmd = ["/bin/mosh-me"];
WorkingDir = "/pwd";
};
}