fixed php access

main
Linux User 2021-05-06 12:05:36 +02:00
parent 612c3d1d36
commit dc49488585
1 changed files with 13 additions and 10 deletions

View File

@ -8,28 +8,31 @@ RUN apk add --no-cache \
php7-curl \
php7-iconv \
php7-json \
php7-openssl \
php7-dom && \
mkdir -p /var/lib/www/rainloop && \
cd /var/lib/www/rainloop && \
curl -sL https://repository.rainloop.net/installer.php | php
RUN addgroup \
mkdir -p /var/www/rainloop && \
cd /var/www/rainloop && \
curl -sL https://repository.rainloop.net/installer.php | php && \
sed -i.bak 's/^listen = 127.0.0.1:9000/listen = 9000/' /etc/php7/php-fpm.d/www.conf && \
addgroup \
--gid 10001 \
rainloop && \
adduser \
--uid 10000 \
--home /var/lib/www/rainloop \
--home /var/www/rainloop \
--ingroup rainloop \
--disabled-password \
--shell /sbin/nologin \
rainloop && \
mkdir /run/nginx && \
mkdir -p /run/nginx /var/run && \
touch /var/run/nginx.pid && \
chown -R rainloop:rainloop \
/var/lib/www/rainloop \
/var/www/rainloop \
/var/log/php7 \
/var/lib/nginx \
/var/log/nginx \
/run/nginx
/run/nginx \
/var/run/nginx.pid
USER rainloop
WORKDIR /var/lib/www/rainloop
WORKDIR /var/www/rainloop