Last active
August 17, 2018 00:51
-
-
Save coderanger/a28c1d2e33f24722615008c32b5d8a2f to your computer and use it in GitHub Desktop.
Revisions
-
coderanger revised this gist
Aug 17, 2018 . No changes.There are no files selected for viewing
-
coderanger created this gist
Aug 17, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ ################### # 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