title: Docker COPY command give 777 access to the copied file
body: <p>In my docker file I have below command:</p>
  
  <pre><code>USER gerrit
  COPY gerrit-default-config /var/gerrit/etc/gerrit.config
  </code></pre>
  
  <p>Running the image I see that the file access number is 777.
  Is it default value? Is there a way to change the access other than running chmod after each COPY?</p>
  
  <pre><code>RUN chmod 600 /var/gerrit/etc/gerrit.config
  </code></pre>