php 镜像 security 源切 TUNA(阿里云 security 同步滞后 404)
This commit is contained in:
@@ -6,8 +6,8 @@ FROM ${COMPOSER_IMAGE} AS composer
|
|||||||
FROM ${PHP_BASE_IMAGE}
|
FROM ${PHP_BASE_IMAGE}
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
# 国内 ECS 访问 deb.debian.org(Fastly)易超时,apt 源切换到阿里云镜像站
|
# 国内 ECS 访问 deb.debian.org(Fastly)易超时:main/updates 走阿里云镜像,security 走 TUNA(同步更及时)
|
||||||
sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list; \
|
sed -i 's|deb.debian.org/debian-security|mirrors.tuna.tsinghua.edu.cn/debian-security|g; s|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list; \
|
||||||
apt-get update && apt-get install -y --no-install-recommends \
|
apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
|
|||||||
Reference in New Issue
Block a user