diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d77a681 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM quay.io/3scale/openresty:1.5.12.1 + +MAINTAINER Michal Cichra # 2014-02-24 + +RUN luarocks install luajson \ + && luarocks install luaexpat + +RUN ln -sf /var/www/brainslug/config/supervisor.conf /etc/supervisor/conf.d/openresty.conf \ + && ln -sf /var/www/brainslug/config/logrotate.conf /etc/logrotate.d/nginx \ + && echo '* * * * * curl http://localhost:7071/api/mails/send' | crontab + +ENV SLUG_LOGFILE /var/log/supervisor/supervisord.log +ENV SLUG_CSRF_PROTECTION 1; + +CMD ["supervisord", "-n"] +EXPOSE 7071 10002 + +ADD . /var/www/brainslug + diff --git a/app/analytics/index.html b/app/analytics/index.html index 9458924..7804ae3 100644 --- a/app/analytics/index.html +++ b/app/analytics/index.html @@ -12,10 +12,10 @@

Analyze flows to detect peaks and problems

-