Skip to content

Commit 2d444e0

Browse files
xiagwbestlong
authored andcommitted
php-fpm implement CHANGE_SOURCE
WIP laradock#2238
1 parent cb910c5 commit 2d444e0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

php-fpm/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ ARG LARADOCK_PHP_VERSION
2323
# Set Environment Variables
2424
ENV DEBIAN_FRONTEND noninteractive
2525

26+
ARG CHANGE_SOURCE=false
27+
RUN if [ ${CHANGE_SOURCE} = true ]; then \
28+
# Change application source from deb.debian.org to aliyun source
29+
sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list \
30+
;fi
31+
2632
# always run apt update when start and after add new source list, then clean up at end.
2733
RUN set -xe; \
2834
apt-get update -yqq && \

0 commit comments

Comments
 (0)