commit | author | age
|
497620
|
1 |
FROM registry.access.redhat.com/rhel7:7.6 |
RA |
2 |
|
|
3 |
RUN |
|
4 |
rpm --rebuilddb && \ |
|
5 |
yum install -y --setopt=tsflags=nodocs rh-nginx18 \ |
|
6 |
&& yum clean all |
|
7 |
|
|
8 |
ADD index.html /opt/rh/rh-nginx18/root/usr/share/nginx/html |
|
9 |
|
|
10 |
ADD nginxconf.sed run.sh /tmp/ |
|
11 |
RUN sed -i -f /tmp/nginxconf.sed /etc/opt/rh/rh-nginx18/nginx/nginx.conf |
|
12 |
|
|
13 |
RUN chown -R 1001:0 /var/opt/rh/rh-nginx18 /opt/rh/rh-nginx18 && \ |
|
14 |
chmod -R a+rx,g+rwx /var/opt/rh/rh-nginx18 /opt/rh/rh-nginx18 |
|
15 |
|
|
16 |
EXPOSE 8080 |
|
17 |
|
|
18 |
USER 1001 |
|
19 |
|
|
20 |
ENTRYPOINT ["/tmp/run.sh"] |
|
21 |
|