fix: 生产阶段 apt 源换阿里云镜像
This commit is contained in:
@@ -40,6 +40,10 @@ RUN npm prune --omit=dev
|
|||||||
|
|
||||||
FROM node:22-slim
|
FROM node:22-slim
|
||||||
|
|
||||||
|
# Use China apt mirror
|
||||||
|
RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || \
|
||||||
|
sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list 2>/dev/null || true
|
||||||
|
|
||||||
# Proxy for apt-get (passed via --build-arg)
|
# Proxy for apt-get (passed via --build-arg)
|
||||||
ARG HTTP_PROXY
|
ARG HTTP_PROXY
|
||||||
ARG HTTPS_PROXY
|
ARG HTTPS_PROXY
|
||||||
|
|||||||
Reference in New Issue
Block a user