docker build --build-arg <key>=<value> -t <tag> <context>
Meaning: Passes a build argument to the Dockerfile.
Usage: Allows passing custom variables to the build process.
Example: docker build --build-arg ENV=production -t my-image .
passes the ENV
argument with value production
.