Pass build args

Docker
docker build --build-arg NODE_ENV=production -t <image>:<tag> .