I have a multi-stage Dockerfile that begins like:
FROM microsoft/aspnetcore-build:2.0 AS build-env WORKDIR /app RUN dotnet restore
The problem is that my project has a local NuGet repository. The obvious solution would be to do something like
COPY <source of NuGet repository> /root/.nuget/packages
But this gives me an error that
COPY failed: Forbidden path outside the build context.
What is the solution to make a local Nuget repository available to a multi-stage build like this?