2017-11-15 13:00:57 +08:00
|
|
|
FROM zuohuadong/caddy:alpine
|
|
|
|
|
2018-03-16 17:34:47 +08:00
|
|
|
LABEL maintainer="Huadong Zuo <admin@zuohuadong.cn>"
|
2016-07-19 21:51:20 -05:00
|
|
|
|
2017-11-15 13:00:57 +08:00
|
|
|
ARG plugins="cors"
|
2016-08-26 14:01:48 -05:00
|
|
|
|
2017-11-15 13:00:57 +08:00
|
|
|
## ARG plugins="cors cgi cloudflare azure linode"
|
2016-07-19 21:51:20 -05:00
|
|
|
|
|
|
|
|
2017-11-15 13:00:57 +08:00
|
|
|
RUN caddyplug install ${plugins}
|
|
|
|
|
2016-07-19 21:51:20 -05:00
|
|
|
|
|
|
|
EXPOSE 80 443 2015
|
2016-07-25 07:31:31 +03:00
|
|
|
|
2017-05-01 12:36:31 +02:00
|
|
|
WORKDIR /var/www/public
|
2016-07-19 21:51:20 -05:00
|
|
|
|
2018-06-03 16:29:47 +08:00
|
|
|
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile","-agree"]
|