commit | author | age | ||
c08808 | 1 | FROM registry.access.redhat.com/ubi8:8.0 |
SU | 2 | |
3 | RUN yum install -y --disableplugin=subscription-manager --nodocs nginx \ | |
4 | && yum clean all | |
5 | ||
6 | ADD index.html /usr/share/nginx/html | |
7 | ||
8 | ADD nginxconf.sed /tmp/ | |
9 | RUN sed -i -f /tmp/nginxconf.sed /etc/nginx/nginx.conf | |
10 | ||
11 | RUN touch /run/nginx.pid \ | |
12 | && chgrp -R 0 /var/log/nginx /run/nginx.pid \ | |
13 | && chmod -R g+rwx /var/log/nginx /run/nginx.pid | |
14 | ||
15 | EXPOSE 8080 | |
16 | USER 1001 | |
17 | ||
18 | CMD nginx -g "daemon off;" | |
19 |