docker build --build-arg NODE_ENV=production -t myapp .

Category: Docker

docker build --build-arg NODE_ENV=production -t myapp .

Pass a build-time variable into the Dockerfile

Passes a build-time argument (NODE_ENV=production) into the Dockerfile's ARG instruction.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.