all three containers works with alpine and user are configured
This commit is contained in:
@@ -28,6 +28,10 @@
|
||||
COPY ./conf/nginx.conf.alpine /etc/nginx/nginx.conf
|
||||
COPY ./conf/inception_nginx.conf /etc/nginx/http.d/
|
||||
|
||||
# create user www-data and assign it to group www-data
|
||||
RUN adduser -S www-data && \
|
||||
adduser www-data www-data
|
||||
|
||||
# common -----------------------------------------------------
|
||||
|
||||
# personalized index.html
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
# inception modifications :
|
||||
#
|
||||
# user :
|
||||
# < user www-data
|
||||
# > user nginx
|
||||
|
||||
# /etc/nginx/nginx.conf
|
||||
|
||||
user nginx;
|
||||
user www-data;
|
||||
|
||||
# Set number of worker processes automatically based on number of CPU cores.
|
||||
worker_processes auto;
|
||||
|
||||
Reference in New Issue
Block a user