replace ADD with COPY to follow best practices

This commit is contained in:
Student User 2019-08-02 13:51:29 +00:00
parent 9d0d654cac
commit c2f929499e

View file

@ -11,13 +11,13 @@ RUN yum install -y --disableplugin=subscription-manager --nodocs \
nginx nginx-mod-http-perl nginx nginx-mod-http-perl
RUN yum clean all RUN yum clean all
ADD nginx.conf /etc/nginx/ COPY nginx.conf /etc/nginx/
RUN touch /run/nginx.pid RUN touch /run/nginx.pid
RUN chgrp -R nginx /var/log/nginx /run/nginx.pid RUN chgrp -R nginx /var/log/nginx /run/nginx.pid
RUN chmod -R g+rwx /var/log/nginx /run/nginx.pid RUN chmod -R g+rwx /var/log/nginx /run/nginx.pid
ADD src/ /usr/share/nginx/html COPY src/ /usr/share/nginx/html
EXPOSE 8080 EXPOSE 8080