build 镜像时候提示找不到requirements.txt文件,但是文件确实存在#1895
代码仓库根目录有一个requirements.txt文件,dockerfile里写的 COPY requirements.txt . 启动云开发 自动构建镜像,会报错 [build Dockerfile] #6 [ 2/19] COPY requirements.txt . [build Dockerfile] #6 ERROR: failed to calculate checksum of ref 6b5ef977-e67b-4ca1-b716-d735899348df::3p5gpc8qhdjzkkeaozrynj2i9: "/requirements.txt": not found [build Dockerfile] ------ [build Dockerfile] > [ 2/19] COPY requirements.txt .: [build Dockerfile] ------
6b5ef977
详细日志:https://cnb.cool/echonlab/dev-env/-/build/logs/cnb-gvg-1j495jlus
@flyingorange(小董) 可以参考下这个文档 https://docs.cnb.cool/zh/build/grammar.html#build
简单描述一下问题和重现方式
代码仓库根目录有一个requirements.txt文件,dockerfile里写的
COPY requirements.txt .
启动云开发
自动构建镜像,会报错
[build Dockerfile] #6 [ 2/19] COPY requirements.txt .
[build Dockerfile] #6 ERROR: failed to calculate checksum of ref
6b5ef977-e67b-4ca1-b716-d735899348df::3p5gpc8qhdjzkkeaozrynj2i9: "/requirements.txt": not found[build Dockerfile] ------
[build Dockerfile] > [ 2/19] COPY requirements.txt .:
[build Dockerfile] ------
详细日志:https://cnb.cool/echonlab/dev-env/-/build/logs/cnb-gvg-1j495jlus