在云效中,build-arg:APP_NAME=yuanjing_qa_service, docker镜像编译的时候,APP_NAME 值没有展开,帮忙看下 https://build-engine-rdc-log.oss-cn-beijing.aliyuncs.com/raw-20617f50-6042-4318-b81d-d7ac7684b69e_5.log?Expires=1697697631&OSSAccessKeyId=LTAI4FnbPSgvaXQhDRbFcSTp&Signature=48GXpyGcBGoCvE4rlbis0aovyNI%3D&response-content-type=text%2Fplain%3B%20charset%3Dutf-8
从你提供的链接来看,这是一个构建引擎的日志,而不是Docker镜像编译的日志。在构建引擎的日志中,我们可以看到这样一段内容:
```
INFO[0005] [builder.go:101]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:102]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:103]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:104]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:105]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:106]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:107]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:108]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:109]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:110]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:111]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:112]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:113]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:114]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:115]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:116]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:117]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:118]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:119]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:120]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:121]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:122]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:123]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:124]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:125]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:126]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:127]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:128]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:129]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:130]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:131]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:132]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:133]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:134]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:135]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:136]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:137]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:138]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:139]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:140]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:141]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:142]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:143]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:144]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:145]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:146]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:147]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:148]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:149]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:150]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:151]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:152]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:153]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:154]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:155]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:156]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:157]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:158]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:159]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:160]: build args: map[APP_NAME:yuanjing_qa_service]
INFO[0005] [builder.go:161]: build args: map[APP_NAME:yuanjing_qa_service]
我这边还是替换了,您看看日志的这部分:执行COPY的这里是不是已经替换了,报错是指出错误的Dockerfile的位置,不替换是正常的此回答来自“云效客户服务群”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。