dev:修改镜像源

This commit is contained in:
liubocheng 2025-03-27 10:22:03 +08:00
parent ff29cd6601
commit a99b543dfd
1 changed files with 8 additions and 1 deletions

View File

@ -9,7 +9,14 @@ services:
- laravel_net - laravel_net
# 修正后的启动命令 # 修正后的启动命令
command: > command: >
sh -c "set -ex sh -c "tee /etc/apt/sources.list <<EOF
# 清华大学 Debian 11 Bullseye 镜像
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
EOF
&& set -ex
&& apt-get update && apt-get update
&& apt-get install -y libzip-dev unzip && apt-get install -y libzip-dev unzip
&& docker-php-ext-install pdo_mysql zip && docker-php-ext-install pdo_mysql zip