Docker build with multiple --build-arg arguments

Posted on September 22, 2022

If you are passing multiple arguments then add --build-arg with each argument like below

docker build \
-t imagename \
--build-arg env=prod \
--build-arg port=3000 \
--no-cache .
to join this conversation on Samprix.Already have an account? Sign in to comment
Sponsors