Skip to content

Commit

Permalink
Try fix nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Jun 18, 2024
1 parent ef944af commit 30366cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions sources/MadWorldNL.HomeFriend.Clients.Portal/Dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand All @@ -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
Expand Down
5 changes: 2 additions & 3 deletions sources/MadWorldNL.HomeFriend.Clients.Portal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand All @@ -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
Expand Down

0 comments on commit 30366cc

Please sign in to comment.