You should handle file permissions in the Dockerfile and not relying on the permissions you set on the host before Docker build. “run.sh” is not executable:
root@30dc80c07bc0:/# ls -lahs run.sh
4.0K -rw-r--r-- 1 root root 1.9K Nov 26 2020 run.sh
EDIT:
While the above is true, you run “run.sh” as a parameter of “bash” so it could work, but it cannot get through the condition at the beginning. Try set -ex instead of just set -e and you will see where the script stops.
It doesn’t contain the -L flag for curl, which you already know, because your question is older than your last modification. I just noticed that.
Please, always share when you find the solution so we don’t spend hours on finding it again