Never mind, I don’t even need to mount secrets in dockerfile. This is for accessing secrets in build time which I don’t need to. The problem I was facing is actually that I could not access .env in run time even if I had configured it on render. I guess the problem was because .env was mounted to /app/.env instead of /app/src/.env? Anyway, I solved it by adding environment variables directly instead of copying the .env.