我正在运行一个管道与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
定义的目录