Browse Source

Docker: Use www-data instead of a new user for httpd

2xB 2 years ago
parent
commit
c4eb7c0e50
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Dockerfile

+ 2 - 4
Dockerfile

@@ -4,8 +4,6 @@ COPY ./viewer /usr/local/apache2/htdocs/
 
 COPY ./docker/custom-httpd.conf /usr/local/apache2/conf/httpd.conf
 
-RUN adduser --disabled-password httpdusr
+RUN chown -R www-data /usr/local/apache2/logs
 
-RUN chown -R httpdusr /usr/local/apache2/logs
-
-USER httpdusr
+USER www-data