Skip to content

Instantly share code, notes, and snippets.

@coderanger
Last active August 17, 2018 00:51
Show Gist options
  • Select an option

  • Save coderanger/a28c1d2e33f24722615008c32b5d8a2f to your computer and use it in GitHub Desktop.

Select an option

Save coderanger/a28c1d2e33f24722615008c32b5d8a2f to your computer and use it in GitHub Desktop.

Revisions

  1. coderanger revised this gist Aug 17, 2018. No changes.
  2. coderanger created this gist Aug 17, 2018.
    11 changes: 11 additions & 0 deletions Dockerfile
    Original 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