Commit ea7cf488 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

http_proxy ne suffit pas à wget.

parent e95d8a6b
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -22,10 +22,11 @@ RUN echo "Acquire::http::proxy \"${HTTP_PROXY}\";" > /etc/apt/apt.conf.d/proxy
RUN apt-get -qq update

# PHP 7.x PPA repository
RUN apt-get install -y wget lsb-release apt-transport-https ca-certificates
RUN echo "http_proxy = ${HTTP_PROXY}" >> /etc/wgetrc
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
RUN apt-get install -y wget lsb-release apt-transport-https ca-certificates && \
    echo "http_proxy = ${HTTP_PROXY}"  >> /etc/wgetrc && \
    echo "https_proxy = ${HTTP_PROXY}" >> /etc/wgetrc && \
    wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
    echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list

# Installation des packages requis.
RUN apt-get -qq update && \
+0 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ EOF
export PHP_VERSION="$1"
export APACHE_CONF_DIR=/etc/apache2
export PHP_CONF_DIR=/etc/php/${PHP_VERSION}
export HTTP_PROXY=${HTTP_PROXY}

# Mise à niveau de la distrib
echo "Acquire::http::proxy \"${HTTP_PROXY}\";" > /etc/apt/apt.conf.d/proxy