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.5KB

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