update of hello-world-nginx image for UBI

This commit is contained in:
Student User
2019-06-26 23:10:40 +00:00
parent 9b71dda827
commit c088084639
3 changed files with 29 additions and 0 deletions

View File

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