File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/framework/sdk:4.8.1 AS build
22WORKDIR /app
33
44# copy csproj and restore as distinct layers
5- COPY *.sln .
5+ COPY *.sln NuGet.config ./
66COPY aspnetapp/*.csproj ./aspnetapp/
77COPY aspnetapp/*.config ./aspnetapp/
88RUN nuget restore
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <configuration >
3+ <packageSources >
4+ <clear />
5+ <add key =" dotnet-public" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
6+ </packageSources >
7+ </configuration >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/framework/sdk:4.8.1 AS build
22WORKDIR /app
33
44# copy csproj and restore as distinct layers
5- COPY *.sln .
5+ COPY *.sln NuGet.config ./
66COPY aspnetmvcapp/*.csproj ./aspnetmvcapp/
77COPY aspnetmvcapp/*.config ./aspnetmvcapp/
88RUN nuget restore
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <configuration >
3+ <packageSources >
4+ <clear />
5+ <add key =" dotnet-public" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
6+ </packageSources >
7+ </configuration >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/framework/sdk:4.8.1 AS build
22WORKDIR /app
33
44# copy csproj and restore as distinct layers
5- COPY *.csproj .
5+ COPY NuGet.config *.csproj ./
66RUN dotnet restore
77
88# copy and build everything else
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <configuration >
3+ <packageSources >
4+ <clear />
5+ <add key =" dotnet-public" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
6+ </packageSources >
7+ </configuration >
You can’t perform that action at this time.
0 commit comments