From 016f7c6398fb97827508f3f29b917541f2c89a78 Mon Sep 17 00:00:00 2001 From: dingo Date: Thu, 4 Dec 2025 07:51:51 -0500 Subject: [PATCH] nuget fight --- Dockerfile | 14 ++++++++++++-- nuget.config | 16 +++++++--------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2da8cd1..41f4c2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,16 +12,26 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src -# --- NEW: bring in nuget.config first so it gets its own cached layer --- +# --- NEW: ensure CA certs + curl are present and up to date in the SDK image --- +RUN apt-get update && \ + apt-get install -y --no-install-recommends ca-certificates curl && \ + rm -rf /var/lib/apt/lists/* + +# --- NEW: bring in nuget.config FIRST so it's cached as its own layer --- COPY nuget.config ./ # Copy the project file COPY SystemRevivalServer.csproj ./ +# --- DEBUG STEP: test HTTPS to NuGet from *inside this image* using curl --- +# If this fails, you'll see the TLS / network error plainly in the build log. +RUN curl -vI https://api.nuget.org/v3/index.json + # --- UPDATED: more robust restore using our nuget.config --- +# Temporarily using 'diagnostic' so we can see the real inner error for NU1301. RUN dotnet restore "SystemRevivalServer.csproj" \ --disable-parallel \ - --verbosity minimal + --verbosity diagnostic # Copy the rest of the source COPY . . diff --git a/nuget.config b/nuget.config index 4b3476b..a6a4d51 100644 --- a/nuget.config +++ b/nuget.config @@ -1,12 +1,10 @@ - - - - - - - - - + + + + + + +