16 lines
292 B
Text
16 lines
292 B
Text
|
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"]
|