<envPropertyFile> not able to add environment variables

I have a maven project where I am using docker-maven-plugin to build docker images. I want to insert environment variables from one environment.properties file. But using the file is not working.

Code is as below:




It is a basic dockerfile to be build. I just want to fetch environment variables from an external file.

Source: StackOverflow