add git & Chinese users friendly.

China can not access  golang.org.
This commit is contained in:
huadong zuo 2017-11-15 13:00:57 +08:00 committed by GitHub
parent 9877f0453e
commit 5bcb99dfb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,15 @@
FROM golang FROM zuohuadong/caddy:alpine
MAINTAINER Huadong Zuo <admin@zuohuadong.cn> MAINTAINER Huadong Zuo <admin@zuohuadong.cn>
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 \ RUN caddyplug install ${plugins}
&& caddyplug install-caddy \
&& caddyplug install git
RUN caddy --version
EXPOSE 80 443 2015 EXPOSE 80 443 2015