I want some directory in my docker to have a specific umask value, say 000. I tried to set that in my dockerfile and in the ENTRYPOINT shell script, but they both failed to work,
...
RUN umask 000 /var/www/html/storage/logs //the directory
ENTRYPOINT ["/etc/start.sh"]
#in the /etc/start.sh
#!/bin/sh
umask 000 /var/www/html/storage/logs
...
When I log into docker container and check /var/www/html/storage/logs
umask, it is still the default 0022
/var/www/html # cd storage/logs/
/var/www/html/storage/logs # umask
0022
Why is that? How do I make it work ? Thanks!