images/caddy/Dockerfile

16 lines
292 B
Text
Raw Normal View History

2024-10-23 17:56:30 +00:00
FROM docker.io/golang:1.23-alpine AS builder
WORKDIR /work
RUN go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
RUN xcaddy build \
--output ./caddy \
--with github.com/sagikazarmark/caddy-fs-s3
FROM scratch
COPY --from=builder /work/caddy /caddy
ENTRYPOINT ["/caddy"]