From 20081b068777ca1e30e53745b94c07f5829928d9 Mon Sep 17 00:00:00 2001 From: nitrobass24 Date: Mon, 6 Apr 2026 21:30:25 -0500 Subject: [PATCH] Fix Docker build: enable Windows targeting for cross-platform restore Prowlarr.csproj multi-targets net8.0-windows which fails to restore on Alpine Linux without EnableWindowsTargeting=true. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4eebbb1d3..9fe50225c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/Prowlarr.csproj -r "$(cat /tmp/rid)" -p:SelfContained=true +RUN dotnet restore src/NzbDrone/Prowlarr.csproj -r "$(cat /tmp/rid)" -p:SelfContained=true -p:EnableWindowsTargeting=true # Copy remaining source and build COPY src/ src/ @@ -38,6 +38,7 @@ RUN dotnet publish src/NzbDrone/Prowlarr.csproj \ -r "$(cat /tmp/rid)" \ --self-contained \ --no-restore \ + -p:EnableWindowsTargeting=true \ -o /build/bin && \ rm -rf /build/bin/Prowlarr.Update /build/bin/Prowlarr.Windows.* \ /build/bin/ServiceInstall.* /build/bin/ServiceUninstall.*