2017-11-15 13:00:57 +08:00
|
|
|
FROM zuohuadong/caddy:alpine
|
|
|
|
|
2016-07-25 12:31:31 +08:00
|
|
|
|
2017-10-12 18:40:12 +08:00
|
|
|
MAINTAINER Huadong Zuo <admin@zuohuadong.cn>
|
2016-07-20 10:51:20 +08:00
|
|
|
|
2017-11-15 13:00:57 +08:00
|
|
|
ARG plugins="cors"
|
2016-08-27 03:01:48 +08:00
|
|
|
|
2017-11-15 13:00:57 +08:00
|
|
|
## ARG plugins="cors cgi cloudflare azure linode"
|
2016-07-20 10:51:20 +08:00
|
|
|
|
|
|
|
|
2017-11-15 13:00:57 +08:00
|
|
|
RUN caddyplug install ${plugins}
|
|
|
|
|
2016-07-20 10:51:20 +08:00
|
|
|
|
|
|
|
EXPOSE 80 443 2015
|
2016-07-25 12:31:31 +08:00
|
|
|
|
2017-05-01 18:36: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"]
|