I came across this post and indeed it threw me off: when I read "Permission denied" I think file ownership: the user executing the script is not in the right group. But in this case, my problem was also that my Python script did not have the execute permission. Adding that before building the script and adding '#!/usr/bin/env python' to the script allowed me to use the APP_SCRIPT environment variable when starting the container