\?\C:\Windows\TEMP\docker-builder101683383\
I’m trying to run a builder command from a vsts agent and it keeps prefixing the path above.
[command]“C:\Program Files\Docker\Docker\Resources\bin\docker.exe” build -f C:\agent_work\1\s\src\Api\Dockerfile --build-arg source=C:\agent_work\1\a -t 2481:release -t 2481:ServiceDirectory -t 2481 C:\agent_work\1\s\src\Directory.Api
I run it locally as well in the same form. And it constantly fails, i’m trying to simply pass the location of the published files to use in the copy.
FROM microsoft/aspnetcore:1.1.2
ARG source
WORKDIR /app
EXPOSE 80
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT [“dotnet”, “Directory.API.dll”]
The above is the docker file? I can’t figure this out for the life of me, it only ever works if i go.
$ docker build ./
Why can’t i just simply pass over the source argument?