Antonio Mika
·
30 May 24
Dockerfile
1FROM --platform=$BUILDPLATFORM caddy:builder-alpine AS builder
2
3ENV CGO_ENABLED=0
4
5ARG TARGETOS
6ARG TARGETARCH
7
8ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH}
9
10RUN xcaddy build \
11 --with github.com/caddy-dns/cloudflare
12
13FROM caddy:alpine
14
15COPY --from=builder /usr/bin/caddy /usr/bin/caddy