-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (24 loc) · 1.57 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM --platform=$BUILDPLATFORM caddy:builder AS builder
ARG TARGETOS TARGETARCH
RUN \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
GOOS=$TARGETOS GOARCH=$TARGETARCH xcaddy build v2.8.4 \
--with github.com/abiosoft/caddy-exec@521d8736cb4d1ce7f5b8bf8be6f3a2c9ecad843c \
--with github.com/aksdb/caddy-cgi/v2@c5b9c14d767b2da626820f7971942d45bf9b3db2 \
--with github.com/caddy-dns/cloudflare@89f16b99c18ef49c8bb470a82f895bce01cbaece \
--with github.com/caddy-dns/route53@d92230e22b716e9b0c8bc1086477415f8b90e77f \
--with github.com/caddyserver/forwardproxy@02be81e69669fb6f2d69e852f58d6311635657c8 \
--with github.com/fvbommel/caddy-combine-ip-ranges@5624d08f5f9e788816bdd877b7c81280c69b434e \
--with github.com/fvbommel/caddy-dns-ip-range@6facda90c1f7c05ee4a5d8211acb7e50d09f5a71 \
--with github.com/greenpau/[email protected] \
--with github.com/greenpau/caddy-security@90049c80f2c048dfc1d493c221b9f53a1dca43d5 \
--with github.com/greenpau/[email protected] \
--with github.com/mholt/caddy-dynamicdns@7c818ab3fc3485a72a346f85c77810725f19f9cf \
--with github.com/mholt/caddy-events-exec@055bfd2e8b8247533c7a710e11301b7d1645c933 \
--with github.com/mholt/caddy-l4@3c6cc2c0ee0875899fde271fbdef95be3fef7a92 \
--with github.com/mholt/caddy-ratelimit@12435ecef5dbb1b137eb68002b85d775a9d5cdb2 \
--with github.com/mholt/caddy-webdav@42168ba04c9dc2cd228ab8c453dbab27654e52e6 \
--with github.com/WeidiDeng/caddy-cloudflare-ip@f53b62aa13cb7ad79c8b47aacc3f2f03989b67e5
FROM caddy:latest
COPY --from=builder /usr/bin/caddy /usr/bin/caddy