From 5bcb99dfb9b9fcec3ce8c9537465a7ed44a3beaa Mon Sep 17 00:00:00 2001 From: huadong zuo Date: Wed, 15 Nov 2017 13:00:57 +0800 Subject: [PATCH] add git & Chinese users friendly. China can not access golang.org. --- caddy/Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/caddy/Dockerfile b/caddy/Dockerfile index aca00cd..70d69c3 100644 --- a/caddy/Dockerfile +++ b/caddy/Dockerfile @@ -1,17 +1,15 @@ -FROM golang +FROM zuohuadong/caddy:alpine + MAINTAINER Huadong Zuo -ARG plugins="git" +ARG plugins="cors" -## If you come frome china, please ues it. +## ARG plugins="cors cgi cloudflare azure linode" -# RUN echo "172.217.6.127 golang.org" >> /etc/hosts -RUN go get github.com/abiosoft/caddyplug/caddyplug \ - && caddyplug install-caddy \ - && caddyplug install git -RUN caddy --version +RUN caddyplug install ${plugins} + EXPOSE 80 443 2015