When copying files from e.g. container-template to image-dir, the command git cirrus build will change permissions. This prevents us from doing things cleanly in Dockerfile.mustache like:
COPY my_script.sh /usr/local/bin
because my_script.sh will lose executable permissions. The workaround is either to use post script or just use:
COPY my_script.sh /usr/local/bin
RUN chmod +x /usr/loca/bin/my_script.sh
When copying files from e.g.
container-template
toimage-dir
, the commandgit cirrus build
will change permissions. This prevents us from doing things cleanly inDockerfile.mustache
like:because
my_script.sh
will lose executable permissions. The workaround is either to use post script or just use: