mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
make apache container read-only
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
bb63abd8a6
commit
2d0b92db77
5 changed files with 20 additions and 7 deletions
|
|
@ -22,6 +22,8 @@ RUN set -ex; \
|
|||
\
|
||||
mkdir -p /mnt/data; \
|
||||
chown -R www-data:www-data /mnt/data; \
|
||||
mkdir /caddy; \
|
||||
chown 777 /caddy; \
|
||||
\
|
||||
apk add --no-cache \
|
||||
bash \
|
||||
|
|
@ -59,9 +61,13 @@ RUN set -ex; \
|
|||
mkdir /var/run/supervisord; \
|
||||
chown www-data:www-data /var/run/supervisord; \
|
||||
chown www-data:www-data /var/log/supervisord; \
|
||||
chmod 777 /var/run/supervisord; \
|
||||
chmod 777 /var/log/supervisord; \
|
||||
\
|
||||
chown -R www-data:www-data /usr/local/apache2; \
|
||||
chmod +r -R /usr/local/apache2; \
|
||||
mkdir -p /usr/local/apache2/logs; \
|
||||
chmod 777 -R /usr/local/apache2/logs; \
|
||||
\
|
||||
echo "root:$(openssl rand -base64 12)" | chpasswd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue