images/caddy/Dockerfile
Peter Kurfer bd5ac7f388
Some checks failed
Image builds / build_images (caddy) (push) Successful in 3m12s
Renovate / renovate (push) Failing after 1s
Image builds / build_images (renovate) (push) Successful in 7m59s
feat: add caddy image
2024-10-23 19:56:30 +02:00

15 lines
292 B
Docker

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"]