diff --git a/Dockerfile b/Dockerfile index 3fed39dee..88a215664 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,11 +31,15 @@ RUN dotnet restore Jellyfin.Server/Jellyfin.Server.csproj \ # Publish the server (and all transitive dependencies, including the # PostgreSQL provider assembly added by this fork). +# Note: TreatWarningsAsErrors is disabled for the Docker build — StyleCop +# analyzer violations in upstream src/ projects would otherwise block the +# image build. StyleCop is enforced in the CI pipeline, not the Dockerfile. RUN dotnet publish Jellyfin.Server/Jellyfin.Server.csproj \ --configuration Release \ --runtime linux-x64 \ --self-contained false \ --no-restore \ + -p:TreatWarningsAsErrors=false \ --output /app # ── Runtime stage ─────────────────────────────────────────────────────────────