diff --git a/Dockerfile b/Dockerfile index 3870841..5bc0187 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ FROM alpine:3.14 AS builder +RUN apk --no-cache add \ + composer \ + npm + ENV NC_VERSION=22.1.0 ENV NC_SHA256_SUM=4820808f799146853604e1fa27d7f292449018a44dc73bf928a97b02028318ba RUN wget https://download.nextcloud.com/server/releases/nextcloud-$NC_VERSION.tar.bz2 @@ -13,6 +17,7 @@ RUN wget https://github.com/nextcloud/twofactor_totp/archive/refs/tags/$TFA_VERS RUN echo "$TFA_SHA256_SUM $TFA_VERSION.tar.gz" | sha256sum -c - || exit 1 RUN mkdir /var/lib/nextcloud/apps/twofactor_totp RUN tar xzf $TFA_VERSION.tar.gz -C /var/lib/nextcloud/apps/twofactor_totp --strip 1 +RUN cd /var/lib/nextcloud/apps/twofactor_totp && composer install --no-dev -o && npm ci && npm run build ENV U2F_VERSION=v6.2.0 ENV U2F_SHA256_SUM=a52b5513696134b7d4a8d21d24c23c4c49d90dd0a5d8ea68ddca52bc927c22f1 diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index 049250b..a5f6989 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -36,7 +36,6 @@ s6-setuidgid nginx ./occ app:enable contacts s6-setuidgid nginx ./occ app:enable news s6-setuidgid nginx ./occ app:enable tasks s6-setuidgid nginx ./occ app:enable notes -#s6-setuidgid nginx ./occ app:enable mail s6-setuidgid nginx ./occ app:enable sociallogin s6-setuidgid nginx ./occ app:enable integration_mastodon s6-setuidgid nginx ./occ app:enable integration_github