commit 84dd5f9c88f0666120ed77f0d605bdbc9f64ad10 Author: Dave Pedu Date: Thu Jan 21 12:57:50 2016 -0800 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..442bd5d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:trusty + +RUN apt-get update && \ + apt-get install -y nginx-light supervisor && \ + rm -rf /var/lib/apt/lists/* && \ + echo 'daemon off;' >> /etc/nginx/nginx.conf + +# Supervisor confs +ADD supervisor.conf /etc/supervisor/conf.d/supervisor.conf +ADD supervisor-nginx.conf /etc/supervisor/conf.d/nginx.conf + +# Startup tasks + +ENTRYPOINT ["supervisord"] + +EXPOSE 80 +EXPOSE 443 + diff --git a/supervisor-nginx.conf b/supervisor-nginx.conf new file mode 100644 index 0000000..eb73b43 --- /dev/null +++ b/supervisor-nginx.conf @@ -0,0 +1,4 @@ +[program:nginx] +command=/usr/sbin/nginx +autorestart=true + diff --git a/supervisor.conf b/supervisor.conf new file mode 100644 index 0000000..3fb016d --- /dev/null +++ b/supervisor.conf @@ -0,0 +1,3 @@ +[supervisord] +nodaemon=true +