summaryrefslogtreecommitdiff
path: root/roles/elevate/media/templates/nextcloud-Dockerfile.j2
blob: 33b817f1b3181081ab969fb9a639e7b92732a8e7 (plain) (blame)
1
2
3
4
5
6
7
8
FROM nextcloud:{{ nextcloud_version }}-fpm

RUN set -x \
    && bash -c 'cd / && find -user www-data -exec chown {{ share_uid }} {} \; || true' \
    && bash -c 'cd / && find -group www-data -exec chown {{ share_gid }} {} \; || true' \
    && sed -e 's/^www-data:\([^:]*\):[0-9]*:[0-9]*:\(.*\)/www-data:\1:{{ share_uid }}:{{ share_gid }}:\2/' -i /etc/passwd \
    && sed -e 's/^www-data:\([^:]*\):[0-9]*:\(.*\)/www-data:\1:800:\2/' -i /etc/group \
    && sed -e 's/^\(exec.*\)$/umask 002\n\1/' -i /entrypoint.sh