我有一个 GitHub Actions 工作流程,但我的构建失败,因为 Docker 无法安装我的requirements.txt
文件中的所有库。
在此COPY ./requirements.txt .
步骤中以及软件包下载完成后,安装阶段将停止并出现错误:ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/nonexistent'
当我查看日志时,我注意到:
#7 [2/7] RUN adduser --system nonroot
#0 0.105 Adding system user `nonroot' (UID 100) ...
#0 0.105 Adding new user `nonroot' (UID 100) with group `nogroup' ...
#7 0.117 Not creating `/nonexistent'. <---???
#7 DONE 0.7s
Run Code Online (Sandbox Code Playgroud)
这是昨天成功的 CI 工作流程的片段:
#7 [2/7] RUN adduser --system nonroot
#0 0.099 Adding system user `nonroot' (UID …
Run Code Online (Sandbox Code Playgroud)