From 815f8d159dbf5f9c10d795d25818fb70eb61ddca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannik=20R=C3=B6del?= Date: Wed, 16 Mar 2022 15:38:58 +0100 Subject: [PATCH] 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. --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 12fb596..4341dac 100644 --- a/flake.nix +++ b/flake.nix @@ -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"