all three containers works with alpine and user are configured

This commit is contained in:
hugo gogo
2022-09-19 23:46:28 +02:00
parent 3be5af0e68
commit 334092253f
9 changed files with 129 additions and 80 deletions

View File

@@ -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

View File

@@ -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;