php 镜像构建 apt 源切换阿里云镜像(deb.debian.org 从 ECS 超时)
This commit is contained in:
@@ -6,6 +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 源切换到阿里云镜像站
|
||||||
|
sed -i '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