Create a nextcloud app with docker-compose

This commit is contained in:
2020-11-22 23:14:54 +00:00
parent 44263c250f
commit db7c5c3deb
13 changed files with 2482 additions and 27 deletions

46
nextcloud/Dockerfile Normal file
View File

@@ -0,0 +1,46 @@
FROM nextcloud:fpm-alpine
RUN set -ex; \
\
apk add --no-cache \
ffmpeg \
imagemagick \
procps \
supervisor \
libreoffice \
;
RUN set -ex; \
\
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
krb5-dev \
openssl-dev \
bzip2-dev \
; \
\
docker-php-ext-install \
bz2 \
; \
\
runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --virtual .nextcloud-phpext-rundeps $runDeps; \
apk del .build-deps
RUN mkdir -p \
/var/log/supervisord \
/var/run/supervisord \
;
COPY --chown=www-data:root config /var/www/html/config
COPY supervisord.conf /
ENV NEXTCLOUD_UPDATE=1
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]