Parcourir la source

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

2xB il y a 2 ans
Parent
commit
c4eb7c0e50
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  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