2017-10-11 13:48:07 +02:00
|
|
|
FROM golang
|
2016-07-25 06:31:31 +02:00
|
|
|
|
2017-10-11 13:48:07 +02:00
|
|
|
ARG version="0.10.9"
|
2016-07-20 04:51:20 +02:00
|
|
|
|
2017-10-11 13:48:07 +02:00
|
|
|
ARG plugins="git"
|
2016-08-26 21:01:48 +02:00
|
|
|
|
2017-10-11 13:48:07 +02:00
|
|
|
## If you come frome china, please ues it.
|
2016-07-20 04:51:20 +02:00
|
|
|
|
2017-10-11 13:48:07 +02:00
|
|
|
# RUN echo "172.217.6.127 golang.org" >> /etc/hosts
|
2016-07-20 04:51:20 +02:00
|
|
|
|
2017-10-11 13:48:07 +02:00
|
|
|
RUN go get github.com/abiosoft/caddyplug/caddyplug \
|
|
|
|
&& caddyplug install-caddy \
|
|
|
|
&& caddyplug install git
|
|
|
|
RUN caddy --version
|
2016-07-20 04:51:20 +02:00
|
|
|
|
|
|
|
EXPOSE 80 443 2015
|
2016-07-25 06:31:31 +02:00
|
|
|
|
2017-05-01 12:36:31 +02:00
|
|
|
WORKDIR /var/www/public
|
2016-07-20 04:51:20 +02:00
|
|
|
|
2017-04-21 08:37:51 +02:00
|
|
|
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]
|