【发布时间】:2023-02-22 16:27:34
【问题描述】:
我正在为我的 python 代码创建一个 docker 图像。 要安装依赖项和要求,我有
pip3 install git+https://$GITHUB_PERSONAL_ACCESS_TOKEN@github.com/<PATH_TO_REPO>@dev --no-cache-dir --force-reinstall
在 Dockerfile 中。当我运行 docker build 命令时,出现以下错误
Running command git clone --filter=blob:none --quiet 'https://****@github.com/<PATH_TO_REPO>.git' /tmp/pip-req-build-cxx5g22f
fatal: could not read Password for 'https://***@github.com': No such device or address
error: subprocess-exited-with-error
我正在使用 GitHub 操作运行 docker build 并在 build 参数中传递 GITHUB_PERSONAL_ACCESS_TOKEN。
请帮忙
【问题讨论】:
标签: docker github-actions