无法计算缓存键:未找到"/app":未找到 Azure 管道



我正在运行一个管道与docker文件,但我得到以下错误。

failed to compute cache key: "/app" not found: not found
##[error]The process 'C:Program FilesDockerDockerresourcesbindocker.exe' failed with exit code 1

我从github中获取了docker文件的donet代码,我尝试添加docker并运行构建。

我的docker文件。

FROM microsoft/dotnet:2.2-aspnetcore-runtime
WORKDIR /app
COPY ./app /app 
ENTRYPOINT [ "dotnet", "Shop.Web.dll"]

我的docker忽略文件有:

bin
obj

我建议你检查你的buildContext参数,你通过你的构建任务提供,以及确保你有应用程序在由buildContext定义的目录

最新更新