2017-11-15 06:00:57 +01:00
|
|
|
FROM zuohuadong/caddy:alpine
|
|
|
|
|
2016-07-25 06:31:31 +02:00
|
|
|
|
2017-10-12 12:40:12 +02:00
|
|
|
MAINTAINER Huadong Zuo <admin@zuohuadong.cn>
|
2016-07-20 04:51:20 +02:00
|
|
|
|
2017-11-15 06:00:57 +01:00
|
|
|
ARG plugins="cors"
|
2016-08-26 21:01:48 +02:00
|
|
|
|
2017-11-15 06:00:57 +01:00
|
|
|
## ARG plugins="cors cgi cloudflare azure linode"
|
2016-07-20 04:51:20 +02:00
|
|
|
|
|
|
|
|
2017-11-15 06:00:57 +01:00
|
|
|
RUN caddyplug install ${plugins}
|
|
|
|
|
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"]
|