소스 검색

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

2xB 2 년 전
부모
커밋
c4eb7c0e50
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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