Update container build

This gives the container a more sensible name and also makes sure the
correct environment variables are set for the CGI script.
This commit is contained in:
Yannik Rödel 2022-03-16 15:38:58 +01:00
parent e324d4fd27
commit 815f8d159d

View file

@ -47,11 +47,14 @@
cgibin = pkgs.copyPathToStore ./cgi-bin; cgibin = pkgs.copyPathToStore ./cgi-bin;
}; };
container = pkgs.dockerTools.buildImage { container = pkgs.dockerTools.buildLayeredImage {
name = "angestoepselt-site-container"; name = "angestoepselt-site";
tag = "latest"; tag = "latest";
config = { config = {
Env = [
"SITE_DIRECTORY=\"${packages.site}\""
];
Cmd = [ Cmd = [
"${pkgs.lighttpd}/bin/lighttpd" "${pkgs.lighttpd}/bin/lighttpd"
"-Df" "-Df"