增加腾讯云的Debian源

This commit is contained in:
yml2213
2026-05-26 17:11:26 +08:00
parent 4d7f9cbca2
commit b2d7ed18a3
2 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -16,9 +16,12 @@ RUN npm run build
FROM docker.m.daocloud.io/library/caddy:2-alpine
ARG ALPINE_MIRROR=mirrors.cloud.tencent.com
ENV TZ=Asia/Shanghai
RUN apk add --no-cache tzdata \
RUN sed -i "s|https://dl-cdn.alpinelinux.org/alpine|https://${ALPINE_MIRROR}/alpine|g" /etc/apk/repositories \
&& apk add --no-cache tzdata \
&& ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone