# Dockerfile FROM caddy:builder AS builder # Install xcaddy RUN xcaddy build --with FROM caddy:latest # Copy the built Caddy binary COPY --from=builder /usr/bin/caddy /usr/bin/caddy # Copy your Caddyfile COPY Caddyfile /etc/caddy/Caddyfile # Run Caddy CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]