title: `chmod` not working on Dockerfile (macbook)
body: <p>I'm currently working on a <strong>Dockerfile</strong> that requires me to have permissions to read, write and execute on two specific folders. When it comes time to run the the <code>chmod</code> commands, it just fail. I can manually change the permissions once inside the docker container but it doesn't seem to pick it up from the command. This is what it looks like currently:</p>
  
  <pre><code>FROM &lt;image-source&gt;
  SHELL ["/bin/bash", "-c"]
  USER root
  WORKDIR /bla/bla
  COPY . .
  CMD chmod 777 -R /src/main/*
  CMD chmod 777 -R /app/main/*
  </code></pre>