build(docker): remove bash from web image
Build docker images. / build-wordle-solver-image (push) Successful in 31s
Build docker images. / build-wordle-solver-web-image (push) Successful in 5m9s

This commit is contained in:
2026-09-10 16:56:31 +02:00
parent 0cad77fb39
commit c1f14a5bba
+2 -7
View File
@@ -6,7 +6,6 @@ let
nginx,
runCommand,
wordle-solver-web,
writeShellScriptBin,
...
}:
dockerTools.buildImage {
@@ -21,10 +20,6 @@ let
"nogroup:x:65534:"
];
})
(writeShellScriptBin "start" ''
echo "Start serving worlde-solver at port 80..."
/bin/nginx -c /etc/nginx.conf
'')
(runCommand "nginx-conf" {} ''
mkdir -p $out/etc
@@ -47,13 +42,13 @@ let
EOF
'')
];
pathsToLink = ["/bin" "/etc"];
pathsToLink = ["/etc"];
};
runAsRoot = ''
mkdir -p /var/log/nginx
'';
config = {
Cmd = ["/bin/start"];
Cmd = ["${nginx}/bin/nginx" "-c" "/etc/nginx.conf"];
};
};
in {