docker error while trying to build an image in azure devops CICD

Cannot build the docker image in the cicd , the path to the image is not found.

here is my dockerfile

FROM mcr.microsoft.com/dotnet/framework/aspnet:4.7.2-windowsservercore-ltsc2019

ARG source

WORKDIR /inetpub/wwwroot

COPY ${source:-./obj/Docker/publish} .

#I am choising Azure pipeline agent windows-2019

Step 4/4 : COPY ${source:-./obj/Docker/publish} .

COPY failed: CreateFile \?\C:\ProgramData\docker\tmp\docker-builder174212468\obj\Docker\publish: The system cannot find the path specified. [error]C:\Program Files\Docker\docker.exe failed with return code: 1

1 answer