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