Fix Docker build: disable StyleCop analyzers during publish

Upstream has TreatWarningsAsErrors=true and StyleCop violations in
existing code. The CI backend build already uses EnableAnalyzers=false.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
nitrobass24 2026-04-06 21:56:58 -05:00
parent 1b6d3fbeb7
commit bc5688bdd1

View file

@ -39,6 +39,7 @@ RUN dotnet publish src/NzbDrone.Console/Prowlarr.Console.csproj \
-r "$(cat /tmp/rid)" \
--self-contained \
--no-restore \
-p:EnableAnalyzers=false \
-o /build/bin && \
rm -rf /build/bin/Prowlarr.Update /build/bin/Prowlarr.Windows.* \
/build/bin/ServiceInstall.* /build/bin/ServiceUninstall.*