You can’t access environment variables from env_file at build time. It’s for run time.
If you want env variables to be set at build time, take a look at build arguments in the Docker Compose documentaton.
You can’t access environment variables from env_file at build time. It’s for run time.
If you want env variables to be set at build time, take a look at build arguments in the Docker Compose documentaton.