From 6c1024248fb77a69f2959e5058ef004509d2445b Mon Sep 17 00:00:00 2001 From: Sebastian Tschan Date: Sat, 25 Sep 2021 07:10:31 +0900 Subject: [PATCH] Make webdriver user the owner of /var/lib/nginx. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 928cd7a..8040211 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ RUN BASE_URL=https://github.com/mozilla/geckodriver/releases/download \ # Configure nginx to run in a container context: RUN ln -sf /dev/stdout /var/log/nginx/access.log RUN ln -sf /dev/stderr /var/log/nginx/error.log -RUN cd /var/lib/nginx && mkdir body proxy fastcgi uwsgi scgi +RUN chown -R webdriver:webdriver /var/lib/nginx RUN touch /run/nginx.pid && chown -R webdriver:webdriver /run/nginx.pid COPY nginx.conf /etc/nginx/