mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-06 19:50:29 +02:00
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) <noreply@anthropic.com>
This commit is contained in:
parent
61408305c6
commit
9a053d0814
1 changed files with 3 additions and 3 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Reference in a new issue