dockerize
dockerize copied to clipboard
Copy permissions from template to file
root@4a33d6ec3087:/# dockerize -template /run.sh.tmpl:/run.sh /bin/bash
root@4a33d6ec3087:/# ls -l /run.*
-rw-r--r-- 1 root root 735 Oct 14 21:05 /run.sh
-rwxr-xr-x 1 root root 777 Oct 14 21:00 /run.sh.tmpl
Bumped into this as well. Any work around?
I believe if the dest file already exists and the permissions are set correctly, the generated file will retain the existing permissions. So a workaround could be add the destination file in your docker image with the correct permissions set and then have dockerize overwrite it.