title: VSTS CI/CD with docker and .NET Core 2.0 - Copy failed
body: <p>While following a couple .NET Core 2.0 Visual Studio Team Services Continuous Integration/Continuous Delivery examples I bumped into a copy error in VSTS.</p>
  
  <p>Adding docker support via VS17 works great locally with a dockerfile like this.</p>
  
  <pre><code>FROM microsoft/aspnetcore:2.0
  ARG source
  WORKDIR /app
  EXPOSE 80
  COPY ${source:-obj/Docker/publish} .
  ENTRYPOINT ["dotnet", "myapp.dll"]
  </code></pre>
  
  <p>With an MVC app and a WebAPI app it worked well with docker-compose locally.</p>
  
  <p>When adding a VSTS CI build process and running it I kept hitting errors with the copy.</p>
  
  <blockquote>
    <p>Building myapp Service 'myapp' failed to
    build: <strong>COPY failed: GetFileAttributesEx</strong>
    \?\C:\Windows\TEMP\docker-builder91\obj\Docker\publish: The
    system cannot find the path specified. C:\Program
    Files\Docker\docker-compose.exe failed with return code: 1</p>
  </blockquote>