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;
};
container = pkgs.dockerTools.buildImage {
name = "angestoepselt-site-container";
container = pkgs.dockerTools.buildLayeredImage {
name = "angestoepselt-site";
tag = "latest";
config = {
Env = [
"SITE_DIRECTORY=\"${packages.site}\""
];
Cmd = [
"${pkgs.lighttpd}/bin/lighttpd"
"-Df"