php-fpm implement CHANGE_SOURCE

WIP #2238
This commit is contained in:
xiagw 2019-09-12 08:36:11 +08:00 committed by Shao Yu-Lung (Allen)
parent cb910c590e
commit 2d444e094c
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ ARG LARADOCK_PHP_VERSION
# Set Environment Variables # Set Environment Variables
ENV DEBIAN_FRONTEND noninteractive 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. # always run apt update when start and after add new source list, then clean up at end.
RUN set -xe; \ RUN set -xe; \
apt-get update -yqq && \ apt-get update -yqq && \