Merge pull request #87725 from nlewo/fix-dockertools

dockerTools.examples: fix the nginx image
This commit is contained in:
lewo 2020-05-15 16:54:09 +02:00 committed by GitHub
commit df928fafd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,12 @@ rec {
tag = "latest";
contents = pkgs.nginx;
extraCommands = ''
# nginx still tries to read this directory even if error_log
# directive is specifying another file :/
mkdir -p var/log/nginx
mkdir -p var/cache/nginx
'';
runAsRoot = ''
#!${pkgs.stdenv.shell}
${shadowSetup}