no 'full' nextcloud
This commit is contained in:
@@ -20,65 +20,63 @@ RUN mv /usr/src/nextcloud/config/.htaccess /usr/src/nextcloud/config/.htaccess.b
|
|||||||
COPY post-start.sh /
|
COPY post-start.sh /
|
||||||
RUN chmod +x /post-start.sh
|
RUN chmod +x /post-start.sh
|
||||||
|
|
||||||
RUN set -ex; \
|
#RUN set -ex; \
|
||||||
\
|
# \
|
||||||
apt-get update; \
|
# apt-get update; \
|
||||||
apt-get install -y --no-install-recommends \
|
# apt-get install -y --no-install-recommends \
|
||||||
ffmpeg \
|
# ffmpeg \
|
||||||
libmagickcore-6.q16-6-extra \
|
# libmagickcore-6.q16-6-extra \
|
||||||
procps \
|
# procps \
|
||||||
smbclient \
|
# smbclient \
|
||||||
supervisor \
|
# supervisor \
|
||||||
# libreoffice \
|
## libreoffice \
|
||||||
; \
|
# ; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
# rm -rf /var/lib/apt/lists/*
|
||||||
|
#
|
||||||
RUN set -ex; \
|
#RUN set -ex; \
|
||||||
\
|
# \
|
||||||
savedAptMark="$(apt-mark showmanual)"; \
|
# savedAptMark="$(apt-mark showmanual)"; \
|
||||||
\
|
# \
|
||||||
apt-get update; \
|
# apt-get update; \
|
||||||
apt-get install -y --no-install-recommends \
|
# apt-get install -y --no-install-recommends \
|
||||||
libbz2-dev \
|
# libbz2-dev \
|
||||||
libc-client-dev \
|
# libc-client-dev \
|
||||||
libkrb5-dev \
|
# libkrb5-dev \
|
||||||
libsmbclient-dev \
|
# libsmbclient-dev \
|
||||||
; \
|
# ; \
|
||||||
\
|
# \
|
||||||
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
|
# docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
|
||||||
docker-php-ext-install \
|
# docker-php-ext-install \
|
||||||
bz2 \
|
# bz2 \
|
||||||
imap \
|
# imap \
|
||||||
; \
|
# ; \
|
||||||
pecl install smbclient; \
|
# pecl install smbclient; \
|
||||||
docker-php-ext-enable smbclient; \
|
# docker-php-ext-enable smbclient; \
|
||||||
\
|
# \
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
## reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
apt-mark auto '.*' > /dev/null; \
|
# apt-mark auto '.*' > /dev/null; \
|
||||||
apt-mark manual $savedAptMark; \
|
# apt-mark manual $savedAptMark; \
|
||||||
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
|
# ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
|
||||||
| awk '/=>/ { print $3 }' \
|
# | awk '/=>/ { print $3 }' \
|
||||||
| sort -u \
|
# | sort -u \
|
||||||
| xargs -r dpkg-query -S \
|
# | xargs -r dpkg-query -S \
|
||||||
| cut -d: -f1 \
|
# | cut -d: -f1 \
|
||||||
| sort -u \
|
# | sort -u \
|
||||||
| xargs -rt apt-mark manual; \
|
# | xargs -rt apt-mark manual; \
|
||||||
\
|
# \
|
||||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
# apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||||
apt-get clean -y; \
|
# apt-get clean -y; \
|
||||||
rm -rf /var/cache/apt/*; \
|
# rm -rf /var/cache/apt/*; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
# rm -rf /var/lib/apt/lists/*
|
||||||
|
#
|
||||||
RUN mkdir -p \
|
#RUN mkdir -p \
|
||||||
/var/log/supervisord \
|
# /var/log/supervisord \
|
||||||
/var/run/supervisord \
|
# /var/run/supervisord \
|
||||||
;
|
#;
|
||||||
RUN chown www-data:www-data \
|
#RUN chown www-data:www-data \
|
||||||
/var/log/supervisord \
|
# /var/log/supervisord \
|
||||||
/var/run/supervisord;
|
# /var/run/supervisord;
|
||||||
|
#
|
||||||
COPY supervisord.conf /
|
#COPY supervisord.conf /
|
||||||
|
#
|
||||||
ENV NEXTCLOUD_UPDATE=1
|
#CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||||
|
|
||||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
|
||||||
Reference in New Issue
Block a user