Skip to content

Commit

Permalink
replace ADD with COPY to follow best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
Student User committed Aug 2, 2019
1 parent 9d0d654 commit c2f9294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions todo-frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ RUN yum install -y --disableplugin=subscription-manager --nodocs \
nginx nginx-mod-http-perl
RUN yum clean all

ADD nginx.conf /etc/nginx/
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

ADD src/ /usr/share/nginx/html
COPY src/ /usr/share/nginx/html

EXPOSE 8080

Expand Down

0 comments on commit c2f9294

Please sign in to comment.