Razique Mahroua
2019-11-28 ad0e866a6b9db8f056392f8d30e55e1dbee3bd23
Adds Dockerfile for the To Do app
1 files added
25 ■■■■■ changed files
todo-angular/Dockerfile 25 ●●●●● patch | view | raw | blame | history
todo-angular/Dockerfile
New file
@@ -0,0 +1,25 @@
FROM registry.access.redhat.com/ubi8:8.0
LABEL version="1.0" \
  description="A simple To Do Application" \
  creationDate="2017-12-25" \
  updatedDate="2019-11-28"
RUN yum install -y --disableplugin=subscription-manager --nodocs \
  nginx nginx-mod-http-perl \
  && yum clean all
COPY nginx.conf /etc/nginx/
RUN touch /run/nginx.pid \
  && chgrp -R nginx /var/log/nginx /run/nginx.pid \
  && 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;"