如果要使用這些ARG變量,請使用 --build-arg 標志在命令行上傳遞它們。
參考
Dockerfile 之 ARG
https://www.cnblogs.com/jiangbo44/p/14117328.html
https://www.cnblogs.com/jiangbo44/p/14117341.html
使用帶有多個參數(shù)的--build-arg構建docker
https://www.itranslater.com/qa/details/2325701832271725568
https://stackoverflow.com/questions/42297387/docker-build-with-build-arg-with-multiple-arguments
docker build –build-arg 環(huán)境變量不生效的坑
http://idcsec.com/2020/12/18/docker-build-build-arg-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E4%B8%8D%E7%94%9F%E6%95%88%E7%9A%84%E5%9D%91/