- commit
- 0a888aa
- parent
- 2e6c06e
- author
- Antonio Mika
- date
- 2024-05-30 14:03:14 +0000 UTC
Speed up caddy build
1 files changed,
+8,
-1
+8,
-1
1@@ -1,4 +1,11 @@
2-FROM caddy:builder-alpine AS builder
3+FROM --platform=$BUILDPLATFORM caddy:builder-alpine AS builder
4+
5+ENV CGO_ENABLED=0
6+
7+ARG TARGETOS
8+ARG TARGETARCH
9+
10+ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH}
11
12 RUN xcaddy build \
13 --with github.com/caddy-dns/cloudflare