From e946c56631502cf672f3693bd23293ea6e9c730c Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Thu, 12 Mar 2026 00:06:14 +0330 Subject: [PATCH] Revert "fix: bypass broken Nexus proxy, use nuget.org directly" This reverts commit 370f735cf2e72de1b1b492878c74f91614d83ce1. --- Dockerfile | 2 +- src/NuGet.config | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96b8d02..68dcb91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY src/NuGet.config ./ # Copy solution and project files COPY src/ ./ -# Restore and publish +# Restore with Nexus config and publish RUN dotnet restore "CMSMicroservice.WebApi/CMSMicroservice.WebApi.csproj" --configfile NuGet.config RUN dotnet publish "CMSMicroservice.WebApi/CMSMicroservice.WebApi.csproj" -c Release -o /app/publish --no-restore diff --git a/src/NuGet.config b/src/NuGet.config index d70eceb..59d2375 100644 --- a/src/NuGet.config +++ b/src/NuGet.config @@ -2,11 +2,15 @@ - - + + + + + +