FROM docker.io/caddy:builder AS builder

RUN xcaddy build \
    --with github.com/BadAimWeeb/caddy-uwsgi-transport

FROM docker.io/caddy:latest

COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY Caddyfile /etc/caddy/Caddyfile

