workspace and php-fpm change source
This commit is contained in:
@ -24,6 +24,16 @@ ARG LARADOCK_PHP_VERSION
|
||||
# Set Environment Variables
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
||||
|
||||
ADD debian.sources.list /etc/apt/debian.sources.list
|
||||
ARG CHANGE_SOURCE=false
|
||||
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
||||
mv /etc/apt/sources.list /etc/apt/sources.list.back && \
|
||||
mv /etc/apt/debian.sources.list /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 && \
|
||||
|
8
php-fpm/debian.sources.list
Normal file
8
php-fpm/debian.sources.list
Normal file
@ -0,0 +1,8 @@
|
||||
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
|
||||
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
|
||||
deb http://mirrors.aliyun.com/debian-security stretch/updates main
|
||||
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
|
||||
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
|
||||
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
|
||||
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
|
||||
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
|
@ -5,14 +5,19 @@ xdebug.remote_connect_back=1
|
||||
xdebug.remote_port=9000
|
||||
xdebug.idekey=PHPSTORM
|
||||
|
||||
xdebug.remote_autostart=0
|
||||
xdebug.remote_autostart=1
|
||||
xdebug.remote_enable=0
|
||||
xdebug.cli_color=0
|
||||
xdebug.cli_color=1
|
||||
xdebug.profiler_enable=0
|
||||
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling"
|
||||
|
||||
xdebug.remote_handler=dbgp
|
||||
xdebug.remote_mode=req
|
||||
xdebug.remote_log=/var/log/php/xdebug_remote.log
|
||||
|
||||
xdebug.auto_trace = 1
|
||||
xdebug.collect_params = 1
|
||||
xdebug.collect_return = 1
|
||||
|
||||
xdebug.var_display_max_children=-1
|
||||
xdebug.var_display_max_data=-1
|
||||
|
Reference in New Issue
Block a user