Set GOOGLE_APPLICATION_CREDENTIALS in Docker

I want to set GOOGLE_APPLICATION_CREDENTIALS inside my docker container using my key.json file but I don’t want to copy this file into my container.

Source: StackOverflow