From 2d444e094cd3bbfdc480ce44875dcc409429847a Mon Sep 17 00:00:00 2001 From: xiagw Date: Thu, 12 Sep 2019 08:36:11 +0800 Subject: [PATCH] php-fpm implement CHANGE_SOURCE WIP #2238 --- php-fpm/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 27dcec7..be2d159 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -23,6 +23,12 @@ ARG LARADOCK_PHP_VERSION # Set Environment Variables ENV DEBIAN_FRONTEND noninteractive +ARG CHANGE_SOURCE=false +RUN if [ ${CHANGE_SOURCE} = true ]; then \ + # Change application source from deb.debian.org to aliyun source + sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list \ +;fi + # always run apt update when start and after add new source list, then clean up at end. RUN set -xe; \ apt-get update -yqq && \