commit | author | age
|
f6dd9c
|
1 |
FROM registry.access.redhat.com/ubi8:8.0 |
SU |
2 |
|
|
3 |
LABEL version="1.0" |
|
4 |
LABEL description="To Do List application front-end" |
|
5 |
LABEL creationDate="2017-12-25" |
|
6 |
LABEL updatedDate="2019-08-01" |
|
7 |
|
|
8 |
ENV BACKEND_HOST=localhost:8081 |
|
9 |
|
9d0d65
|
10 |
RUN yum install -y --disableplugin=subscription-manager --nodocs \ |
SU |
11 |
nginx nginx-mod-http-perl |
f6dd9c
|
12 |
RUN yum clean all |
SU |
13 |
|
c2f929
|
14 |
COPY nginx.conf /etc/nginx/ |
f6dd9c
|
15 |
|
SU |
16 |
RUN touch /run/nginx.pid |
|
17 |
RUN chgrp -R nginx /var/log/nginx /run/nginx.pid |
|
18 |
RUN chmod -R g+rwx /var/log/nginx /run/nginx.pid |
|
19 |
|
c2f929
|
20 |
COPY src/ /usr/share/nginx/html |
f6dd9c
|
21 |
|
SU |
22 |
EXPOSE 8080 |
|
23 |
|
|
24 |
USER nginx |
|
25 |
|
|
26 |
CMD nginx -g "daemon off;" |
|
27 |
|