mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-08 04:30:26 +02:00
Fix Docker build: disable analyzers at restore time too
StyleCop PackageReference is conditionally included based on EnableAnalyzers at restore time. Without it during restore, the analyzer DLLs get restored and run during publish regardless. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bc5688bdd1
commit
0e095834f3
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ COPY src/Prowlarr.Http/Prowlarr.Http.csproj src/Prowlarr.Http/
|
|||
COPY src/ServiceHelpers/ServiceInstall/ServiceInstall.csproj src/ServiceHelpers/ServiceInstall/
|
||||
COPY src/ServiceHelpers/ServiceUninstall/ServiceUninstall.csproj src/ServiceHelpers/ServiceUninstall/
|
||||
|
||||
RUN dotnet restore src/NzbDrone.Console/Prowlarr.Console.csproj -r "$(cat /tmp/rid)" -p:SelfContained=true
|
||||
RUN dotnet restore src/NzbDrone.Console/Prowlarr.Console.csproj -r "$(cat /tmp/rid)" -p:SelfContained=true -p:EnableAnalyzers=false
|
||||
|
||||
# Copy remaining source and build
|
||||
COPY src/ src/
|
||||
|
|
|
|||
Loading…
Reference in a new issue