Decrease image size of mods images

This commit is contained in:
cytopia
2018-11-01 12:48:46 +01:00
parent 6fb6a2f61c
commit 10e114fdd2
20 changed files with 100 additions and 98 deletions

View File

@@ -160,7 +160,6 @@ RUN set -x \
&& git checkout phalcon-v2.0.13 \
&& cd build && ./install \
&& docker-php-ext-enable phalcon \
&& cd / && rm -rf /tmp/phalcon \
&& /usr/local/bin/docker-php-ext-install pspell \
&& pecl install redis \
&& docker-php-ext-enable redis \
@@ -189,13 +188,15 @@ RUN set -x \
&& /usr/local/bin/docker-php-ext-install xsl \
&& /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr \
&& /usr/local/bin/docker-php-ext-install zip \
&& rm -rf /tmp/* \
\
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ${BUILD_DEPS} \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests ${RUN_DEPS} \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates \
&& sh -c "find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true"
&& find /usr/local/{bin,lib,sbin} -type f -print0 | xargs -0r strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -print0 | xargs -0r strip --strip-all -p 2>/dev/null || true
###