From 9a053d0814d2fa464223beeb97092ec44cd75005 Mon Sep 17 00:00:00 2001 From: nitrobass24 Date: Mon, 6 Apr 2026 21:21:07 -0500 Subject: [PATCH] Fix Docker build: restore app project instead of full solution The solution includes test projects whose csproj files aren't copied into the Docker build context, causing restore to fail. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef2d05981..4eebbb1d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ RUN case "${TARGETPLATFORM}" in \ *) echo "linux-musl-x64" > /tmp/rid ;; \ esac -# Copy solution and project files first for layer caching on restore -COPY src/Prowlarr.sln src/Directory.Build.props src/Directory.Build.targets src/NuGet.config src/stylecop.json src/ +# Copy project files first for layer caching on restore +COPY src/Directory.Build.props src/Directory.Build.targets src/NuGet.config src/stylecop.json src/ COPY src/Targets/ src/Targets/ COPY src/Libraries/ src/Libraries/ COPY src/NzbDrone/Prowlarr.csproj src/NzbDrone/ @@ -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/Prowlarr.sln -r "$(cat /tmp/rid)" -p:SelfContained=true +RUN dotnet restore src/NzbDrone/Prowlarr.csproj -r "$(cat /tmp/rid)" -p:SelfContained=true # Copy remaining source and build COPY src/ src/