Skip to content

Commit

Permalink
fix: adds cicd source to Nuget config
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 10, 2024
1 parent dbcea52 commit 95c8d0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ ./
Expand Down
1 change: 1 addition & 0 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<configuration>
<packageSources>
<add key="local" value="local_packages\" />
<!-- <add key="cicd" value="/app/local-packages" /> -->
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>

0 comments on commit 95c8d0d

Please sign in to comment.