In my docker file I have below command:
USER gerrit
COPY gerrit-default-config /var/gerrit/etc/gerrit.config
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?
RUN chmod 600 /var/gerrit/etc/gerrit.config
777
is definitely not the default value. What is the permission of your local file ?ls -l gerrit-default-config
– Pyelonephritis