diff --git a/centos-nginx/Dockerfile b/centos-nginx/Dockerfile new file mode 100644 index 0000000..7611dbe --- /dev/null +++ b/centos-nginx/Dockerfile @@ -0,0 +1,13 @@ +FROM centos +MAINTAINER Tim Marcinowski + +# Update and install NGINX packages and deps +RUN yum -y update --nogpgcheck && \ + yum install -y http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm +RUN yum install -y nginx && yum clean all +RUN echo "daemon off;" >> /etc/nginx/nginx.conf +RUN echo "nginx on CentOS" > /usr/share/nginx/html/index.html + +EXPOSE 80 + +CMD [ "/usr/sbin/nginx" ] diff --git a/fedora-nginx/Dockerfile b/fedora-nginx/Dockerfile new file mode 100644 index 0000000..c9a8ade --- /dev/null +++ b/fedora-nginx/Dockerfile @@ -0,0 +1,11 @@ +FROM fedora:20 +MAINTAINER Tim Marcinowski + +RUN yum update -y +RUN yum install -y nginx && yum clean all +RUN echo "daemon off;" >> /etc/nginx/nginx.conf +RUN echo "nginx on Fedora" > /usr/share/nginx/html/index.html + +EXPOSE 80 + +CMD [ "/usr/sbin/nginx" ]