apt-get update just need run at first, after add-apt-repository or update apt source list.
This commit is contained in:
		@@ -47,8 +47,8 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
 | 
			
		||||
ARG PUID=1000
 | 
			
		||||
ARG PGID=1000
 | 
			
		||||
RUN groupadd -g $PGID laradock && \
 | 
			
		||||
    useradd -u $PUID -g laradock -m laradock
 | 
			
		||||
 | 
			
		||||
    useradd -u $PUID -g laradock -m laradock && \
 | 
			
		||||
    apt-get update -yqq
 | 
			
		||||
 | 
			
		||||
#####################################
 | 
			
		||||
# SOAP:
 | 
			
		||||
@@ -60,8 +60,8 @@ ENV INSTALL_SOAP ${INSTALL_SOAP}
 | 
			
		||||
 | 
			
		||||
RUN if [ ${INSTALL_SOAP} = true ]; then \
 | 
			
		||||
  # Install the PHP SOAP extension
 | 
			
		||||
  apt-get -y update && \
 | 
			
		||||
  add-apt-repository -y ppa:ondrej/php && \
 | 
			
		||||
  apt-get update -yqq && \
 | 
			
		||||
  apt-get -y install libxml2-dev php7.1-soap \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
@@ -124,7 +124,6 @@ RUN echo "" >> ~/.bashrc && \
 | 
			
		||||
ARG INSTALL_XDEBUG=false
 | 
			
		||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
 | 
			
		||||
    # Load the xdebug extension only with phpunit commands
 | 
			
		||||
    apt-get update && \
 | 
			
		||||
    apt-get install -y --force-yes php-xdebug && \
 | 
			
		||||
    sed -i 's/^/;/g' /etc/php/7.1/cli/conf.d/20-xdebug.ini && \
 | 
			
		||||
    echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \
 | 
			
		||||
@@ -146,7 +145,7 @@ ENV BLACKFIRE_CLIENT_TOKEN ${BLACKFIRE_CLIENT_TOKEN}
 | 
			
		||||
RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
 | 
			
		||||
    curl -L https://packagecloud.io/gpg.key | apt-key add - && \
 | 
			
		||||
    echo "deb http://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list && \
 | 
			
		||||
    apt-get update && \
 | 
			
		||||
    apt-get update -yqq && \
 | 
			
		||||
    apt-get install blackfire-agent \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
@@ -306,7 +305,7 @@ ENV INSTALL_V8JS_EXTENSION ${INSTALL_V8JS_EXTENSION}
 | 
			
		||||
RUN if [ ${INSTALL_V8JS_EXTENSION} = true ]; then \
 | 
			
		||||
    # Install the php V8JS extension
 | 
			
		||||
    add-apt-repository -y ppa:pinepain/libv8-5.4 \
 | 
			
		||||
    && apt-get update \
 | 
			
		||||
    && apt-get update -yqq \
 | 
			
		||||
    && apt-get install -y php-xml php-dev php-pear libv8-5.4 \
 | 
			
		||||
    && pecl install v8js \
 | 
			
		||||
    && echo "extension=v8js.so" >> /etc/php/7.1/cli/php.ini \
 | 
			
		||||
@@ -367,7 +366,6 @@ ENV INSTALL_LINUXBREW ${INSTALL_LINUXBREW}
 | 
			
		||||
RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
 | 
			
		||||
 | 
			
		||||
    # Preparation
 | 
			
		||||
    apt-get update && \
 | 
			
		||||
    apt-get upgrade -y && \
 | 
			
		||||
    apt-get install -y build-essential make cmake scons curl git \
 | 
			
		||||
      ruby autoconf automake autoconf-archive \
 | 
			
		||||
@@ -400,7 +398,7 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \
 | 
			
		||||
    # Install Depenencies:
 | 
			
		||||
    #####################################
 | 
			
		||||
        cd / && \
 | 
			
		||||
        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 && \
 | 
			
		||||
 | 
			
		||||
    #####################################
 | 
			
		||||
@@ -417,13 +415,13 @@ 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
 | 
			
		||||
        cd / && \
 | 
			
		||||
        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 \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user