Skip to content

Commit 545efdf

Browse files
authored
Install timezone database in Dockerfile
Added installation of timezone database to Dockerfile.
1 parent 533128e commit 545efdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# 使用官方最新 builder 镜像
22
FROM caddy:builder AS builder
33

4-
# 编译只包含 Cloudflare DNS 插件的 Caddy
4+
# 编译包含 Cloudflare DNS 插件的 Caddy
55
RUN xcaddy build \
66
--with github.com/caddy-dns/cloudflare
77

88
# 使用官方最新运行镜像
99
FROM caddy:latest
1010

11+
# --- 新增部分:安装时区数据库 ---
12+
RUN apk add --no-cache tzdata
13+
1114
# 替换默认的 caddy 二进制文件
1215
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

0 commit comments

Comments
 (0)