ensure permissions on nextcloud dirs

This commit is contained in:
Sebastian Hugentobler 2021-08-22 17:04:28 +02:00
parent 328b3b585c
commit 50d140b056
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 3 additions and 4 deletions

View File

@ -101,8 +101,6 @@ RUN tar xzf release.tar.gz -C /var/lib/nextcloud/apps/sociallogin --strip 1
FROM thallian/php8-fpm:latest
COPY --from=builder /var/lib/nextcloud /var/lib/nextcloud
ENV FPMUSER=nginx
ENV FPMGROUP=nginx
ENV PHP_MEMORY_LIMIT=512M
@ -138,7 +136,8 @@ RUN apk add --no-cache \
php8-bcmath \
php8-gmp
RUN chown -R nginx:nginx /var/lib/nextcloud
COPY --from=builder --chown=nginx:nginx /var/lib/nextcloud /var/lib/nextcloud
RUN rm /etc/nginx/http.d/default.conf
ADD /rootfs /

View File

@ -1,2 +1,2 @@
/var/lib/nextcloud/ true nginx 0640 0750
/var/lib/nextcloud/data true nginx 0640 0750
/var/lib/nextcloud/config true nginx 0640 0750