I'm building a Docker image using multiple build args, and was wondering if it was possible to pass them to docker build
as a file, in the same way --env-file
can be pased to docker run
. The env file will be parsed by docker run
automatically and the variables made available in the container.
Is it possible to specify a file of build arguments in the same way?
--build-arg PORT=4000
EDIT: nevermind they must be separate by line and without the --build-arg: ``` PORT=4000 STUFF=HELLO FOO=BAR ``` – Creese