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-curl \
php7-iconv \ php7-iconv \
php7-json \ php7-json \
php7-openssl \
php7-dom && \ php7-dom && \
mkdir -p /var/lib/www/rainloop && \ mkdir -p /var/www/rainloop && \
cd /var/lib/www/rainloop && \ cd /var/www/rainloop && \
curl -sL https://repository.rainloop.net/installer.php | php 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 && \
RUN addgroup \ addgroup \
--gid 10001 \ --gid 10001 \
rainloop && \ rainloop && \
adduser \ adduser \
--uid 10000 \ --uid 10000 \
--home /var/lib/www/rainloop \ --home /var/www/rainloop \
--ingroup rainloop \ --ingroup rainloop \
--disabled-password \ --disabled-password \
--shell /sbin/nologin \ --shell /sbin/nologin \
rainloop && \ rainloop && \
mkdir /run/nginx && \ mkdir -p /run/nginx /var/run && \
touch /var/run/nginx.pid && \
chown -R rainloop:rainloop \ chown -R rainloop:rainloop \
/var/lib/www/rainloop \ /var/www/rainloop \
/var/log/php7 \ /var/log/php7 \
/var/lib/nginx \ /var/lib/nginx \
/var/log/nginx \ /var/log/nginx \
/run/nginx /run/nginx \
/var/run/nginx.pid
USER rainloop USER rainloop
WORKDIR /var/lib/www/rainloop WORKDIR /var/www/rainloop