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 && \