在 .ide/Dockerfile 中定义了 python 镜像,但在【云原生开发】环境中没有 python 环境#1714
@jingjingwu(晶晶)
日志链接:https://cnb.cool/weseen.org.cn/pharmacokinetic-calculation-system/api-tdesign-starter/-/build/logs/cnb-qco-1j335h653
下面贴上了部分内容,确实是 RUN pip install -r requirements.txt 导致出错了
[build .ide/Dockerfile] #7 [4/4] RUN pip install -r requirements.txt
[build .ide/Dockerfile] #7 2.744 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
[build .ide/Dockerfile] #7 2.851
[build .ide/Dockerfile] #7 2.851 [notice] A new release of pip is available: 23.2.1 -> 25.2
[build .ide/Dockerfile] #7 2.851 [notice] To update, run: pip install --upgrade pip
[build .ide/Dockerfile] #7 ERROR: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
[build .ide/Dockerfile] ------
[build .ide/Dockerfile] > [4/4] RUN pip install -r requirements.txt:
[build .ide/Dockerfile] 2.744 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
[build .ide/Dockerfile] 2.851
[build .ide/Dockerfile] 2.851 [notice] A new release of pip is available: 23.2.1 -> 25.2
[build .ide/Dockerfile] 2.851 [notice] To update, run: pip install --upgrade pip
[build .ide/Dockerfile] ------
[build .ide/Dockerfile] Dockerfile:26
[build .ide/Dockerfile] --------------------
[build .ide/Dockerfile] 24 | ENV LANGUAGE C.UTF-8
[build .ide/Dockerfile] 25 |
[build .ide/Dockerfile] 26 | >>> RUN pip install -r requirements.txt
[build .ide/Dockerfile] 27 |
[build .ide/Dockerfile] --------------------
[build .ide/Dockerfile] ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
[build .ide/Dockerfile] Job finished,code: 1,duration: 1m 32s
- endpoint 36000 start...
构建.ide/Dockerfile 文件需要依赖的文件,需要专门声明
参考这个:https://docs.cnb.cool/zh/build/grammar.html#docker。by 和 versionBy
简单描述一下问题和重现方式
.ide/Dockerfile的文件定义如下,但是【云原生开发】环境中,没有
python环境