replace ADD with COPY to follow best practices
This commit is contained in:
parent
9d0d654cac
commit
c2f929499e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue