From 95c8d0d140c82b0117f584abd361aecda5ae9980 Mon Sep 17 00:00:00 2001 From: Alejo Thomas Ortega Date: Wed, 10 Jan 2024 13:02:42 -0300 Subject: [PATCH] fix: adds cicd source to Nuget config --- Dockerfile | 7 +++++-- nuget.config | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38d84ace..75e0d676 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,15 @@ WORKDIR /app # Copy the .NET Core project file(s) into the container COPY DCL_PiXYZ/ ./api -COPY local_packages/ ./local-packages +COPY nuget.config ./ +COPY local_packages/ ./api/local-packages WORKDIR /app/api +ENV NUGET_CONFIG_FILE=/app/api/nuget.config # Restore dependencies and packages -RUN dotnet publish --source /app/local-packages --source https://api.nuget.org/v3/index.json -c Release -r win10-x64 -o ./publish --self-contained true +# RUN dotnet publish --source /app/local-packages --source https://api.nuget.org/v3/index.json -c Release -r win10-x64 -o ./publish --self-contained true +RUN dotnet publish -c Release -r win10-x64 -o ./publish --self-contained true # Copy the rest of the code into the container COPY DCL_PiXYZ/ ./ diff --git a/nuget.config b/nuget.config index c04bce49..cf9b01da 100644 --- a/nuget.config +++ b/nuget.config @@ -2,6 +2,7 @@ + \ No newline at end of file