From f162864e8971fd121045207fc172fdc68922684a Mon Sep 17 00:00:00 2001 From: Shao Yu Lung Date: Sun, 7 May 2017 01:17:35 +0800 Subject: [PATCH] apt-get update just need run at first, after add-apt-repository or update apt source list. --- php-fpm/Dockerfile-56 | 4 ++-- php-fpm/Dockerfile-70 | 12 ++++++------ php-fpm/Dockerfile-71 | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 176a062..124bd49 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -45,7 +45,7 @@ MAINTAINER Mahmoud Zalt ARG INSTALL_SOAP=false RUN if [ ${INSTALL_SOAP} = true ]; then \ # Install the soap extension - apt-get -y update && \ + apt-get update -yqq && \ apt-get -y install libxml2-dev php-soap && \ docker-php-ext-install soap \ ;fi @@ -219,7 +219,7 @@ RUN if [ ${INSTALL_INTL} = true ]; then \ ARG INSTALL_GHOSTSCRIPT=false RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \ # Install the ghostscript extension for PDF editing - apt-get update && \ + apt-get update -yqq && \ apt-get install -y poppler-utils ghostscript \ ;fi diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 91c6f52..4ee90e8 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -45,7 +45,7 @@ MAINTAINER Mahmoud Zalt ARG INSTALL_SOAP=false RUN if [ ${INSTALL_SOAP} = true ]; then \ # Install the soap extension - apt-get -y update && \ + apt-get update -yqq && \ apt-get -y install libxml2-dev php-soap && \ docker-php-ext-install soap \ ;fi @@ -212,7 +212,7 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \ ARG INSTALL_INTL=false RUN if [ ${INSTALL_INTL} = true ]; then \ # Install intl and requirements - apt-get -y update && \ + apt-get update -yqq && \ apt-get install -y zlib1g-dev libicu-dev g++ && \ docker-php-ext-configure intl && \ docker-php-ext-install intl \ @@ -226,7 +226,7 @@ ARG INSTALL_GHOSTSCRIPT=false RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \ # Install the ghostscript extension # for PDF editing - apt-get -y update \ + apt-get update -yqq \ && apt-get install -y \ poppler-utils \ ghostscript \ @@ -242,7 +242,7 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \ ##################################### # Install Depenencies: ##################################### - apt-get update && \ + apt-get update -yqq && \ apt-get install -y --force-yes wget apt-transport-https curl freetds-common libsybdb5 freetds-bin unixodbc unixodbc-dev && \ ##################################### @@ -258,12 +258,12 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \ | tee /etc/apt/sources.list.d/dotdeb.list \ && wget -qO- https://www.dotdeb.org/dotdeb.gpg \ | apt-key add - \ - && apt-get update \ + && apt-get update -yqq \ && apt-get upgrade -qq && \ # Install UnixODBC # Compile odbc_config as it is not part of unixodbc package - apt-get update && \ + apt-get update -yqq && \ apt-get install -y whiptail \ unixodbc libgss3 odbcinst devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev \ && dget -u -x http://http.debian.net/debian/pool/main/u/unixodbc/unixodbc_2.3.1-3.dsc \ diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 9cb54cd..a971c0e 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -45,7 +45,7 @@ MAINTAINER Mahmoud Zalt ARG INSTALL_SOAP=false RUN if [ ${INSTALL_SOAP} = true ]; then \ # Install the soap extension - apt-get -y update && \ + apt-get update -yqq && \ apt-get -y install libxml2-dev php-soap && \ docker-php-ext-install soap \ ;fi @@ -212,7 +212,7 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \ ARG INSTALL_INTL=false RUN if [ ${INSTALL_INTL} = true ]; then \ # Install intl and requirements - apt-get -y update && \ + apt-get update -yqq && \ apt-get install -y zlib1g-dev libicu-dev g++ && \ docker-php-ext-configure intl && \ docker-php-ext-install intl \ @@ -226,7 +226,7 @@ ARG INSTALL_GHOSTSCRIPT=false RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \ # Install the ghostscript extension # for PDF editing - apt-get -y update \ + apt-get update -yqq \ && apt-get install -y \ poppler-utils \ ghostscript \ @@ -242,7 +242,7 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \ ##################################### # Install Depenencies: ##################################### - apt-get update && \ + apt-get update -yqq && \ apt-get install -y --force-yes wget apt-transport-https curl freetds-common libsybdb5 freetds-bin unixodbc unixodbc-dev && \ ##################################### @@ -258,12 +258,12 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \ | tee /etc/apt/sources.list.d/dotdeb.list \ && wget -qO- https://www.dotdeb.org/dotdeb.gpg \ | apt-key add - \ - && apt-get update \ + && apt-get update -yqq \ && apt-get upgrade -qq && \ # Install UnixODBC # Compile odbc_config as it is not part of unixodbc package - apt-get update && \ + apt-get update -yqq && \ apt-get install -y whiptail \ unixodbc libgss3 odbcinst devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev \ && dget -u -x http://http.debian.net/debian/pool/main/u/unixodbc/unixodbc_2.3.1-3.dsc \