I wasn’t able to get it working by passing in -e, but then I just added the chmod command to docker-entrypoint file and now it’s working.
Thank you so much @lgcl