|
|
@ -1,5 +1,5 @@ |
|
|
|
ARG SERVER_VERSION=27.1.3-fpm-alpine@sha256:f1a13c7f60a9e9f5dcf14b7cb097083833eadf26858cb1f3f6b6251637b2e2dd |
|
|
|
ARG SERVER_VERSION=27.1.3-fpm-alpine@sha256:f1a13c7f60a9e9f5dcf14b7cb097083833eadf26858cb1f3f6b6251637b2e2dd |
|
|
|
FROM nextcloud:$SERVER_VERSION |
|
|
|
FROM nextcloud:$SERVER_VERSION as nextcloud |
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /usr/src/nextcloud |
|
|
|
WORKDIR /usr/src/nextcloud |
|
|
|
|
|
|
|
|
|
|
@ -18,22 +18,41 @@ RUN (sh /entrypoint.sh php -S 0.0.0.0:80 &) && \ |
|
|
|
# Do not setup the demo user here |
|
|
|
# Do not setup the demo user here |
|
|
|
for user in admin user1 user2; do curl -u "$user:$user" -H "ocs-apirequest: true" -s -o /dev/null http://localhost/ocs/v2.php/cloud/user; done |
|
|
|
for user in admin user1 user2; do curl -u "$user:$user" -H "ocs-apirequest: true" -s -o /dev/null http://localhost/ocs/v2.php/cloud/user; done |
|
|
|
|
|
|
|
|
|
|
|
ADD dev/install_app_version /usr/local/bin/ |
|
|
|
COPY dev/static /usr/src/nextcloud/static |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENV PHP_CLI_SERVER_WORKERS=10 |
|
|
|
|
|
|
|
CMD ["php", "-S", "0.0.0.0:80"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:latest as apps |
|
|
|
|
|
|
|
RUN apk add curl |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM apps as news |
|
|
|
ARG NEWS_VERSION=24.0.0 |
|
|
|
ARG NEWS_VERSION=24.0.0 |
|
|
|
RUN install_app_version news https://github.com/nextcloud/news/releases/download/$NEWS_VERSION/news.tar.gz |
|
|
|
RUN curl -L "https://github.com/nextcloud/news/releases/download/$NEWS_VERSION/news.tar.gz" | tar -xz -C / |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM apps as notes |
|
|
|
ARG NOTES_VERSION=4.8.1 |
|
|
|
ARG NOTES_VERSION=4.8.1 |
|
|
|
RUN install_app_version notes https://github.com/nextcloud-releases/notes/releases/download/v$NOTES_VERSION/notes.tar.gz |
|
|
|
RUN curl -L "https://github.com/nextcloud-releases/notes/releases/download/v$NOTES_VERSION/notes.tar.gz" | tar -xz -C / |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM apps as uppush |
|
|
|
ARG UPPUSH_VERSION=1.4.0 |
|
|
|
ARG UPPUSH_VERSION=1.4.0 |
|
|
|
RUN install_app_version uppush https://codeberg.org/NextPush/uppush/archive/$UPPUSH_VERSION.tar.gz |
|
|
|
RUN curl -L "https://codeberg.org/NextPush/uppush/archive/$UPPUSH_VERSION.tar.gz" | tar -xz -C / |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM apps as spreed |
|
|
|
ARG SPREED_VERSION=17.1.2 |
|
|
|
ARG SPREED_VERSION=17.1.2 |
|
|
|
RUN install_app_version spreed https://github.com/nextcloud-releases/spreed/releases/download/v$SPREED_VERSION/spreed-v$SPREED_VERSION.tar.gz |
|
|
|
RUN curl -L "https://github.com/nextcloud-releases/spreed/releases/download/v$SPREED_VERSION/spreed-v$SPREED_VERSION.tar.gz" | tar -xz -C / |
|
|
|
RUN ./occ talk:turn:add turn,turns staticauth.openrelay.metered.ca:443 udp,tcp --secret openrelayprojectsecret |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COPY dev/static /usr/src/nextcloud/static |
|
|
|
FROM nextcloud |
|
|
|
|
|
|
|
|
|
|
|
ENV PHP_CLI_SERVER_WORKERS=10 |
|
|
|
COPY --from=news /news /usr/src/nextcloud/apps/news |
|
|
|
CMD ["php", "-S", "0.0.0.0:80"] |
|
|
|
RUN ./occ app:enable news |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COPY --from=notes /notes /usr/src/nextcloud/apps/notes |
|
|
|
|
|
|
|
RUN ./occ app:enable notes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COPY --from=uppush /uppush /usr/src/nextcloud/apps/uppush |
|
|
|
|
|
|
|
RUN ./occ app:enable uppush |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COPY --from=spreed /spreed /usr/src/nextcloud/apps/spreed |
|
|
|
|
|
|
|
RUN ./occ app:enable spreed |
|
|
|
|
|
|
|
RUN ./occ talk:turn:add turn,turns staticauth.openrelay.metered.ca:443 udp,tcp --secret openrelayprojectsecret |
|
|
|