docker buildx bake --set web.args.NODE_ENV=production

Category: Docker

docker buildx bake --set web.args.NODE_ENV=production

Override a bake target's build argument

--set overrides target fields with target.key=value syntax, here injecting NODE_ENV into the web target's build args. Use --print to confirm the override landed before building. Target names come from the bake file, not from service names.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.