Is it possible to pass environmental variables as a file to a Dockerfile at the time of building a docker image?
I have used --build-arg
as suggested here but as I have multiple arguments would prefer to use a file with all.
Also I have tried using docker run --env-file=mydata.env
approach as well but I need to add these parameters during build time.
Thanks in advance.