Fix apt-get deprecated --force-yes flag & noninteractive if needed (#1640)

This commit is contained in:
Abdelrahman Omran
2018-06-24 17:19:49 +02:00
committed by Shao Yu-Lung (Allen)
parent 7d1dc66f77
commit b71f50bf83
2 changed files with 7 additions and 4 deletions

View File

@ -417,7 +417,7 @@ USER root
ARG INSTALL_IMAGE_OPTIMIZERS=false
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle \
apt-get install -y jpegoptim optipng pngquant gifsicle \
;fi
###########################################################################