From dc494885851e87276691fb0d10f9998b035fdeac Mon Sep 17 00:00:00 2001 From: Linux User Date: Thu, 6 May 2021 12:05:36 +0200 Subject: [PATCH] fixed php access --- rainloop/Dockerfile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/rainloop/Dockerfile b/rainloop/Dockerfile index d09d8b9..989cbb4 100644 --- a/rainloop/Dockerfile +++ b/rainloop/Dockerfile @@ -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