【发布时间】:2021-01-08 18:57:37
【问题描述】:
我尝试在 IntelliJ Rider 中配置和运行一个 docker 文件。
在构建过程中,我收到以下错误:
Step 7/17 : COPY ["src/No.Services/No.Gf/No.Gf.Api/No.Gf.Api.csproj",
"src/No.Services/No.Gf/No.Gf.Api/"]
Error response from daemon: COPY failed: file not found in build context or excluded by .dockerignore:
stat src\No.Services\No.Gf\No.Gf.Api\No.Gf.Api.csproj: file does not exist
文件就在路径指向的位置。它没有被排除在 .dockerignore 中。
我在这里没有选择?
第 6 步是:
Step 6/17 : WORKDIR /src
也许这会增加一个“/src”,并且在第 7 步中它最终会在 /src/src/...中查找文件?
【问题讨论】:
标签: docker dockerfile rider run-configuration