Docker Image for Nextcloud software based on the original image https://hub.docker.com/r/r3pek/nextcloud/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. FROM nextcloud:apache
  2. RUN set -ex; \
  3. \
  4. apt-get update; \
  5. apt-get install -y --no-install-recommends \
  6. ffmpeg \
  7. libmagickcore-6.q16-3-extra \
  8. smbclient \
  9. supervisor \
  10. ; \
  11. rm -rf /var/lib/apt/lists/*
  12. RUN set -ex; \
  13. \
  14. savedAptMark="$(apt-mark showmanual)"; \
  15. \
  16. apt-get update; \
  17. apt-get install -y --no-install-recommends \
  18. libbz2-dev \
  19. libc-client-dev \
  20. libgmp3-dev \
  21. libkrb5-dev \
  22. libsmbclient-dev \
  23. ; \
  24. \
  25. docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
  26. docker-php-ext-install \
  27. bz2 \
  28. gmp \
  29. imap \
  30. ; \
  31. pecl install smbclient; \
  32. docker-php-ext-enable smbclient; \
  33. \
  34. # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
  35. apt-mark auto '.*' > /dev/null; \
  36. apt-mark manual $savedAptMark; \
  37. ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
  38. | awk '/=>/ { print $3 }' \
  39. | sort -u \
  40. | xargs -r dpkg-query -S \
  41. | cut -d: -f1 \
  42. | sort -u \
  43. | xargs -rt apt-mark manual; \
  44. \
  45. apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
  46. rm -rf /var/lib/apt/lists/*
  47. RUN mkdir -p \
  48. /var/log/supervisord \
  49. /var/run/supervisord \
  50. ;
  51. COPY supervisord.conf /etc/supervisor/supervisord.conf
  52. ENV NEXTCLOUD_UPDATE=1
  53. CMD ["/usr/bin/supervisord"]