Images: Use chown
with :
instead of .
.
This commit is contained in:
parent
95501b4ac6
commit
db89fa03f2
5 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,7 @@ RUN apk update \
|
|||
); \
|
||||
for dir in "${writeDirs[@]}"; do \
|
||||
mkdir -p ${dir}; \
|
||||
chown -R www-data.www-data ${dir}; \
|
||||
chown -R www-data:www-data ${dir}; \
|
||||
done'
|
||||
|
||||
EXPOSE 80 443
|
||||
|
|
|
@ -624,7 +624,7 @@ adduser -S -D -H -u 101 -h /usr/local/nginx -s /sbin/nologin -G www-data -g www-
|
|||
|
||||
for dir in "${writeDirs[@]}"; do
|
||||
mkdir -p ${dir};
|
||||
chown -R www-data.www-data ${dir};
|
||||
chown -R www-data:www-data ${dir};
|
||||
done
|
||||
|
||||
rm -rf /etc/nginx/owasp-modsecurity-crs/.git
|
||||
|
|
|
@ -59,7 +59,7 @@ RUN bash -xeu -c ' \
|
|||
); \
|
||||
for dir in "${writeDirs[@]}"; do \
|
||||
mkdir -p ${dir}; \
|
||||
chown -R www-data.www-data ${dir}; \
|
||||
chown -R www-data:www-data ${dir}; \
|
||||
done' \
|
||||
# LD_LIBRARY_PATH does not work so below is needed for opentelemetry/other modules
|
||||
# Put libs of newer modules under `/modules_mount/<other>/lib` and add that path below
|
||||
|
|
|
@ -78,7 +78,7 @@ RUN bash -xeu -c ' \
|
|||
); \
|
||||
for dir in "${writeDirs[@]}"; do \
|
||||
mkdir -p ${dir}; \
|
||||
chown -R www-data.www-data ${dir}; \
|
||||
chown -R www-data:www-data ${dir}; \
|
||||
done' \
|
||||
# LD_LIBRARY_PATH does not work so below is needed for opentelemetry/other modules
|
||||
# Put libs of newer modules under `/modules_mount/<other>/lib` and add that path below
|
||||
|
@ -103,7 +103,7 @@ RUN ln -sf /chroot/etc/nginx /etc/nginx \
|
|||
&& touch /chroot/var/log/nginx/access.log \
|
||||
&& chown www-data:www-data /chroot/var/log/nginx/access.log \
|
||||
&& echo "" > /chroot/etc/resolv.conf \
|
||||
&& chown -R www-data.www-data /chroot/var/log/nginx /chroot/etc/resolv.conf \
|
||||
&& chown -R www-data:www-data /chroot/var/log/nginx /chroot/etc/resolv.conf \
|
||||
&& mknod -m 0666 /chroot/dev/null c 1 3 \
|
||||
&& mknod -m 0666 /chroot/dev/random c 1 8 \
|
||||
&& mknod -m 0666 /chroot/dev/urandom c 1 9 \
|
||||
|
|
|
@ -39,7 +39,7 @@ writeDirs=( \
|
|||
|
||||
for dir in "${writeDirs[@]}"; do
|
||||
mkdir -p ${dir};
|
||||
chown -R www-data.www-data ${dir};
|
||||
chown -R www-data:www-data ${dir};
|
||||
done
|
||||
|
||||
mkdir -p /chroot/lib /chroot/proc /chroot/usr /chroot/bin /chroot/dev /chroot/run
|
||||
|
|
Loading…
Reference in a new issue