Skip to content

Instantly share code, notes, and snippets.

@coderanger coderanger/Dockerfile
Last active Aug 17, 2018

Embed
What would you like to do?
Dockerfile snippet for Caddy build
###################
# Caddy build image
FROM abiosoft/caddy:builder
ARG caddy_version="0.11.0"
ARG caddy_plugins="cors,realip,expires,proxyprotocol,prometheus"
ENV ENABLE_TELEMETRY="false"
# Disable a bunch of standard plugins we don't need.
RUN sed -i "/# build/a sed -Ei '/caddyhttp.(basicauth|browse|fastcgi|markdown|templates|websocket)/d' /go/src/github.com/mholt/caddy/caddyhttp/caddyhttp.go" /usr/bin/builder.sh
RUN VERSION=${caddy_version} PLUGINS=${caddy_plugins} /bin/sh /usr/bin/builder.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.