|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
FROM nextcloud:27.0.0-fpm-alpine |
|
|
|
|
FROM nextcloud:27.0.0 |
|
|
|
|
WORKDIR /usr/src/nextcloud |
|
|
|
|
RUN chown -R www-data:www-data . |
|
|
|
|
USER www-data |
|
|
|
|
|
|
|
|
|
RUN ./occ maintenance:install --admin-pass admin --admin-email admin@example.com |
|
|
|
|
RUN ./occ config:system:set allow_local_remote_servers --value=true |
|
|
|
@ -18,5 +20,3 @@ RUN (sh /entrypoint.sh php -S 0.0.0.0:8080 &) && \
|
|
|
|
|
until curl -s -o /dev/null http://localhost:8080/status.php; do true; done && \ |
|
|
|
|
for user in admin user1 user2; do curl -u "$user:$user" -H "ocs-apirequest: true" -s -o /dev/null http://localhost:8080/ocs/v2.php/cloud/user; done |
|
|
|
|
COPY --chown=www-data:www-data overlay /usr/src/nextcloud/ |
|
|
|
|
|
|
|
|
|
CMD ["php", "-S", "0.0.0.0:80"] |
|
|
|
|