parent
cb910c590e
commit
2d444e094c
@ -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 && \
|
||||||
|
Loading…
Reference in New Issue
Block a user