laradock/caddy/Dockerfile

21 lines
406 B
Docker
Raw Normal View History

2017-10-17 12:23:48 +08:00
FROM golang
2016-07-25 12:31:31 +08:00
2017-10-17 12:23:48 +08:00
MAINTAINER Huadong Zuo <admin@zuohuadong.cn>
2016-07-20 10:51:20 +08:00
2017-10-17 12:23:48 +08:00
ARG plugins="git"
2017-10-17 12:23:48 +08:00
## If you come frome china, please ues it.
2016-07-20 10:51:20 +08:00
2017-10-17 12:23:48 +08:00
# RUN echo "172.217.6.127 golang.org" >> /etc/hosts
2016-07-20 10:51:20 +08:00
2017-10-17 12:23:48 +08:00
RUN go get github.com/abiosoft/caddyplug/caddyplug \
&& caddyplug install-caddy \
&& caddyplug install git
RUN caddy --version
2016-07-20 10:51:20 +08:00
EXPOSE 80 443 2015
2016-07-25 12:31:31 +08:00
WORKDIR /var/www/public
2016-07-20 10:51:20 +08:00
2017-04-21 14:37:51 +08:00
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]