diff --git a/sources/MadWorldNL.HomeFriend.Clients.Portal/Dev.Dockerfile b/sources/MadWorldNL.HomeFriend.Clients.Portal/Dev.Dockerfile index 6001269..9a21eb6 100644 --- a/sources/MadWorldNL.HomeFriend.Clients.Portal/Dev.Dockerfile +++ b/sources/MadWorldNL.HomeFriend.Clients.Portal/Dev.Dockerfile @@ -10,7 +10,6 @@ ARG NUGET_ACCESS_TOKEN WORKDIR /src # Add NuGet source -RUN dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org RUN dotnet nuget add source \ --username "${NUGET_USERNAME}" \ --password "${NUGET_ACCESS_TOKEN}" \ @@ -19,7 +18,7 @@ RUN dotnet nuget add source \ COPY ["Directory.Build.props", "/"] COPY ["Directory.Packages.props", "/"] -COPY ["Nuget.config", "/"] +COPY ["Nuget.config", "/src"] COPY ["MadWorldNL.HomeFriend.Clients.Portal/Portal.csproj", "MadWorldNL.HomeFriend.Clients.Portal/"] RUN dotnet restore "MadWorldNL.HomeFriend.Clients.Portal/Portal.csproj" --configfile /Nuget.config diff --git a/sources/MadWorldNL.HomeFriend.Clients.Portal/Dockerfile b/sources/MadWorldNL.HomeFriend.Clients.Portal/Dockerfile index d17ba5a..852f1d9 100644 --- a/sources/MadWorldNL.HomeFriend.Clients.Portal/Dockerfile +++ b/sources/MadWorldNL.HomeFriend.Clients.Portal/Dockerfile @@ -15,7 +15,6 @@ ARG NUGET_ACCESS_TOKEN WORKDIR /src # Add NuGet source -RUN dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org RUN dotnet nuget add source \ --username "${NUGET_USERNAME}" \ --password "${NUGET_ACCESS_TOKEN}" \ @@ -24,10 +23,10 @@ RUN dotnet nuget add source \ COPY ["Directory.Build.props", "/"] COPY ["Directory.Packages.props", "/"] -COPY ["Nuget.config", "/"] +COPY ["Nuget.config", "/src"] COPY ["MadWorldNL.HomeFriend.Clients.Portal/Portal.csproj", "MadWorldNL.HomeFriend.Clients.Portal/"] -RUN dotnet restore "MadWorldNL.HomeFriend.Clients.Portal/Portal.csproj" --configfile /Nuget.config +RUN dotnet restore "MadWorldNL.HomeFriend.Clients.Portal/Portal.csproj" COPY . . WORKDIR "/src/MadWorldNL.HomeFriend.Clients.Portal" RUN dotnet build "Portal.csproj" -c Release -o /app/build