15 lines
292 B
Docker
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"]
|