chmod "file permission" error during docker build from dockerfile : I am trying to copy a .war file from my host desktop to a location inside my docker container. Then i want to extract this .war file and afterwards change the permission to all the files which lies under one of the extracted file folder. Thereafter i again want to rebuild a .war file (after deleting the old .war file) at same location that would ultimately contain the edited files with granted read/write permissions.This new .war file i can then copy under my tomcat/webapps folder inside docker to get deployed.

 For this purpose i have written a docker file as shown 

    FROM tomcat:8.5-jdk11 
    MAINTAINER derek
    
    RUN mkdir -p /usr/src/temp
    COPY SP-files/WAR/SP.war  /usr/src/temp/
    RUN jar -xvf /usr/src/temp/SP.war
    RUN rm -rf SP.war
    RUN chmod 777 /usr/src/temp/WEB-INF/native/*
    
    RUN jar -cvf /usr/src/temp/SP.war .
    RUN cp /usr/src/temp/SP.war  /usr/local/tomcat/webapps/

During the docker build process i get the error 
 chmod: cannot access '/usr/src/temp/WEB-INF/native/*': No such file or directory

Indeed, my exploded SP.war has folder WEB-INF/native/{*all files to be edited are here*}.I have no clue why is it unable to locate the files.
Is there some other way to specify the chmod command  in docker file ? I have also attaches a screenshot of error. [ERROR-IMAGE][1]


  [1]: https://i.stack.imgur.com/YEym1.png
  [2]: https://i.stack.imgur.com/QAj2Y.png