The `--cleanup` option also uses an `apt autoremove` command.

pull/20/head
Pavel Mironchik 2019-05-17 13:13:23 +06:00
parent 28481a5161
commit 2ac6d4aa78
2 changed files with 13 additions and 8 deletions

View File

@ -24,7 +24,7 @@ RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
``` ```
`install-php-extensions` will install all the required APT packages. `install-php-extensions` will install all the required APT packages.
If you want to remove the APT development packages (which shouldn't be needed after the PHP extensions have been installed), you can use the `--cleanup` option (**EXPERIMENTAL**): If you want to remove the APT development packages (which shouldn't be needed after the PHP extensions have been installed) and other no longer required packages, you can use the `--cleanup` option (**EXPERIMENTAL**):
``` ```
install-php-extensions --cleanup gd xdebug install-php-extensions --cleanup gd xdebug
``` ```

View File

@ -574,6 +574,11 @@ then
fi fi
fi fi
done done
if test -n "${DO_APT_REMOVE}"
then
printf '### REMOVING NO LONGER REQUIRED PACKAGES ###\n'
DEBIAN_FRONTEND=noninteractive apt autoremove -y
fi
if test -n "${UNNEEDED_APT_PACKAGES}" if test -n "${UNNEEDED_APT_PACKAGES}"
then then
printf '### REMOVING UNNEEDED APT PACKAGES ###\n' printf '### REMOVING UNNEEDED APT PACKAGES ###\n'