initial commit

This commit is contained in:
Dave Pedu 2016-01-21 12:57:50 -08:00
commit 84dd5f9c88
3 changed files with 25 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -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

4
supervisor-nginx.conf Normal file
View File

@ -0,0 +1,4 @@
[program:nginx]
command=/usr/sbin/nginx
autorestart=true

3
supervisor.conf Normal file
View File

@ -0,0 +1,3 @@
[supervisord]
nodaemon=true