[Dockerfile] Clean up apt cache, make image smaller (#1880)
This commit is contained in:
parent
1e75f9d3d5
commit
be9df41e07
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
||||||
&& apt-get --yes --no-install-recommends install \
|
&& apt-get --yes --no-install-recommends install \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libmemcached-dev \
|
libmemcached-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& pecl install memcached \
|
&& pecl install memcached \
|
||||||
&& docker-php-ext-enable memcached \
|
&& docker-php-ext-enable memcached \
|
||||||
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
||||||
|
|
Loading…
Reference in a new issue