-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# --- Pinned, reproducible defaults (CI updates these; CI can also override via --build-arg if needed) ---
ARG CADDY_VERSION=2.11.2
ARG CF_PLUGIN=github.com/caddy-dns/cloudflare@v0.2.4
ARG TS_PLUGIN=github.com/tailscale/caddy-tailscale@bb080c4414acd465d8be93b4d8f907dbb2ab2544
FROM caddy:${CADDY_VERSION}-builder AS builder
ARG CADDY_VERSION
ARG CF_PLUGIN
ARG TS_PLUGIN
RUN xcaddy build "v${CADDY_VERSION#v}" \
--with "${CF_PLUGIN}" \
--with "${TS_PLUGIN}"
FROM caddy:${CADDY_VERSION}
LABEL org.opencontainers.image.title="Caddy (Cloudflare DNS + Tailscale)" \
org.opencontainers.image.description="Pinned Caddy build with Cloudflare DNS and Tailscale modules" \
org.opencontainers.image.licenses="Apache-2.0"
COPY --from=builder /usr/bin/caddy /usr/bin/caddy