apt-get update just need run at first, after add-apt-repository or update apt source list.
This commit is contained in:
parent
69c9202304
commit
f162864e89
@ -45,7 +45,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
ARG INSTALL_SOAP=false
|
ARG INSTALL_SOAP=false
|
||||||
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
# Install the soap extension
|
# Install the soap extension
|
||||||
apt-get -y update && \
|
apt-get update -yqq && \
|
||||||
apt-get -y install libxml2-dev php-soap && \
|
apt-get -y install libxml2-dev php-soap && \
|
||||||
docker-php-ext-install soap \
|
docker-php-ext-install soap \
|
||||||
;fi
|
;fi
|
||||||
@ -219,7 +219,7 @@ RUN if [ ${INSTALL_INTL} = true ]; then \
|
|||||||
ARG INSTALL_GHOSTSCRIPT=false
|
ARG INSTALL_GHOSTSCRIPT=false
|
||||||
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
|
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
|
||||||
# Install the ghostscript extension for PDF editing
|
# Install the ghostscript extension for PDF editing
|
||||||
apt-get update && \
|
apt-get update -yqq && \
|
||||||
apt-get install -y poppler-utils ghostscript \
|
apt-get install -y poppler-utils ghostscript \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
ARG INSTALL_SOAP=false
|
ARG INSTALL_SOAP=false
|
||||||
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
# Install the soap extension
|
# Install the soap extension
|
||||||
apt-get -y update && \
|
apt-get update -yqq && \
|
||||||
apt-get -y install libxml2-dev php-soap && \
|
apt-get -y install libxml2-dev php-soap && \
|
||||||
docker-php-ext-install soap \
|
docker-php-ext-install soap \
|
||||||
;fi
|
;fi
|
||||||
@ -212,7 +212,7 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
|
|||||||
ARG INSTALL_INTL=false
|
ARG INSTALL_INTL=false
|
||||||
RUN if [ ${INSTALL_INTL} = true ]; then \
|
RUN if [ ${INSTALL_INTL} = true ]; then \
|
||||||
# Install intl and requirements
|
# Install intl and requirements
|
||||||
apt-get -y update && \
|
apt-get update -yqq && \
|
||||||
apt-get install -y zlib1g-dev libicu-dev g++ && \
|
apt-get install -y zlib1g-dev libicu-dev g++ && \
|
||||||
docker-php-ext-configure intl && \
|
docker-php-ext-configure intl && \
|
||||||
docker-php-ext-install intl \
|
docker-php-ext-install intl \
|
||||||
@ -226,7 +226,7 @@ ARG INSTALL_GHOSTSCRIPT=false
|
|||||||
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
|
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
|
||||||
# Install the ghostscript extension
|
# Install the ghostscript extension
|
||||||
# for PDF editing
|
# for PDF editing
|
||||||
apt-get -y update \
|
apt-get update -yqq \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
poppler-utils \
|
poppler-utils \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
@ -242,7 +242,7 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
# Install Depenencies:
|
# 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 && \
|
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 \
|
| tee /etc/apt/sources.list.d/dotdeb.list \
|
||||||
&& wget -qO- https://www.dotdeb.org/dotdeb.gpg \
|
&& wget -qO- https://www.dotdeb.org/dotdeb.gpg \
|
||||||
| apt-key add - \
|
| apt-key add - \
|
||||||
&& apt-get update \
|
&& apt-get update -yqq \
|
||||||
&& apt-get upgrade -qq && \
|
&& apt-get upgrade -qq && \
|
||||||
|
|
||||||
# Install UnixODBC
|
# Install UnixODBC
|
||||||
# Compile odbc_config as it is not part of unixodbc package
|
# Compile odbc_config as it is not part of unixodbc package
|
||||||
apt-get update && \
|
apt-get update -yqq && \
|
||||||
apt-get install -y whiptail \
|
apt-get install -y whiptail \
|
||||||
unixodbc libgss3 odbcinst devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev \
|
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 \
|
&& dget -u -x http://http.debian.net/debian/pool/main/u/unixodbc/unixodbc_2.3.1-3.dsc \
|
||||||
|
@ -45,7 +45,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
ARG INSTALL_SOAP=false
|
ARG INSTALL_SOAP=false
|
||||||
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
# Install the soap extension
|
# Install the soap extension
|
||||||
apt-get -y update && \
|
apt-get update -yqq && \
|
||||||
apt-get -y install libxml2-dev php-soap && \
|
apt-get -y install libxml2-dev php-soap && \
|
||||||
docker-php-ext-install soap \
|
docker-php-ext-install soap \
|
||||||
;fi
|
;fi
|
||||||
@ -212,7 +212,7 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
|
|||||||
ARG INSTALL_INTL=false
|
ARG INSTALL_INTL=false
|
||||||
RUN if [ ${INSTALL_INTL} = true ]; then \
|
RUN if [ ${INSTALL_INTL} = true ]; then \
|
||||||
# Install intl and requirements
|
# Install intl and requirements
|
||||||
apt-get -y update && \
|
apt-get update -yqq && \
|
||||||
apt-get install -y zlib1g-dev libicu-dev g++ && \
|
apt-get install -y zlib1g-dev libicu-dev g++ && \
|
||||||
docker-php-ext-configure intl && \
|
docker-php-ext-configure intl && \
|
||||||
docker-php-ext-install intl \
|
docker-php-ext-install intl \
|
||||||
@ -226,7 +226,7 @@ ARG INSTALL_GHOSTSCRIPT=false
|
|||||||
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
|
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
|
||||||
# Install the ghostscript extension
|
# Install the ghostscript extension
|
||||||
# for PDF editing
|
# for PDF editing
|
||||||
apt-get -y update \
|
apt-get update -yqq \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
poppler-utils \
|
poppler-utils \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
@ -242,7 +242,7 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
# Install Depenencies:
|
# 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 && \
|
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 \
|
| tee /etc/apt/sources.list.d/dotdeb.list \
|
||||||
&& wget -qO- https://www.dotdeb.org/dotdeb.gpg \
|
&& wget -qO- https://www.dotdeb.org/dotdeb.gpg \
|
||||||
| apt-key add - \
|
| apt-key add - \
|
||||||
&& apt-get update \
|
&& apt-get update -yqq \
|
||||||
&& apt-get upgrade -qq && \
|
&& apt-get upgrade -qq && \
|
||||||
|
|
||||||
# Install UnixODBC
|
# Install UnixODBC
|
||||||
# Compile odbc_config as it is not part of unixodbc package
|
# Compile odbc_config as it is not part of unixodbc package
|
||||||
apt-get update && \
|
apt-get update -yqq && \
|
||||||
apt-get install -y whiptail \
|
apt-get install -y whiptail \
|
||||||
unixodbc libgss3 odbcinst devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev \
|
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 \
|
&& dget -u -x http://http.debian.net/debian/pool/main/u/unixodbc/unixodbc_2.3.1-3.dsc \
|
||||||
|
Loading…
Reference in New Issue
Block a user