Sign inSign up

florianperrot/caddy-builder

By florianperrot

•Updated almost 6 years ago

Generate your Caddy personalized (version, plugins, telemetry)

Image
0

318

florianperrot/caddy-builder repository overview

⁠Caddy builder

caddy-builder generate caddy executable with your configuration.

Chose caddy version with VERSION=v1.0.3, chose to disable telemetry with DISABLE_TELEMETRY=true and chose your plugins with PLUGINS=github.com/xuqingfeng/[email protected].

If caddy or plugin version is omit latest is selected.

⁠Example

Simple run caddy-builder, but useless without any configurations just download here⁠.

⁠First case in Command line
$ go install github.com/FlorianPerrot/caddy-builder
$ VERSION=v1.0.3 DISABLE_TELEMETRY=true PLUGINS=github.com/nicolasazrak/caddy-cache,github.com/xuqingfeng/[email protected] caddy-builder
⁠Second case on Dockerfile

cf: Dockerhub⁠

FROM florianperrot/caddy-builder as builder

ENV VERSION="v1.0.3"
ENV PLUGINS="github.com/nicolasazrak/caddy-cache,github.com/xuqingfeng/caddy-rate-limit"
ENV DISABLE_TELEMETRY="false"

RUN CGO_ENABLED=0 caddy-builder -o /install/caddy

#
# Final stage
#
FROM alpine:3.10

# install caddy
COPY --from=builder /install/caddy /usr/bin/caddy

RUN caddy -version
RUN caddy -plugins

CMD ["caddy"]

Tag summary

Content type

Image

Digest

Size

299.2 MB

Last updated

almost 6 years ago

docker pull florianperrot/caddy-builder