dockerize icon indicating copy to clipboard operation
dockerize copied to clipboard

Copy permissions from template to file

Open TFenby opened this issue 9 years ago • 2 comments

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

TFenby avatar Oct 14 '16 21:10 TFenby

Bumped into this as well. Any work around?

matchatype avatar Jan 17 '17 13:01 matchatype

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.

jwilder avatar Jan 17 '17 16:01 jwilder