ci: add docker image build
Some checks failed
Build a docker image. / build-docker-image (push) Failing after 4s
Some checks failed
Build a docker image. / build-docker-image (push) Failing after 4s
This commit is contained in:
27
nix/docker.nix
Normal file
27
nix/docker.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user