diff --git a/hello-world-nginx/Dockerfile b/hello-world-nginx/Dockerfile new file mode 100644 index 0000000000..c1a808d92c --- /dev/null +++ b/hello-world-nginx/Dockerfile @@ -0,0 +1,19 @@ +FROM registry.access.redhat.com/ubi8:8.0 + +RUN yum install -y --disableplugin=subscription-manager --nodocs nginx \ + && yum clean all + +ADD index.html /usr/share/nginx/html + +ADD nginxconf.sed /tmp/ +RUN sed -i -f /tmp/nginxconf.sed /etc/nginx/nginx.conf + +RUN touch /run/nginx.pid \ + && chgrp -R 0 /var/log/nginx /run/nginx.pid \ + && chmod -R g+rwx /var/log/nginx /run/nginx.pid + +EXPOSE 8080 +USER 1001 + +CMD nginx -g "daemon off;" + diff --git a/hello-world-nginx/index.html b/hello-world-nginx/index.html new file mode 100644 index 0000000000..03717c5c17 --- /dev/null +++ b/hello-world-nginx/index.html @@ -0,0 +1,5 @@ + +
+