From a9815b54e03159f9433e16ea21f55fe0f866c2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ty=C5=84ski?= Date: Sun, 4 Oct 2026 01:50:01 +0200 Subject: [PATCH] fix(infra): fix Dockerfile restore and build script solution name Copy the layered project files before restore so the Docker build resolves project references, and build the correct solution file (TarninaHub.slnx) in scripts/build.mjs. --- Dockerfile | 3 +++ scripts/build.mjs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7779aca..6e11d2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,9 @@ RUN npm run build FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build WORKDIR /src COPY backend/TarninaHub.csproj ./backend/ +COPY backend/Domain/TarninaHub.Domain.csproj ./backend/Domain/ +COPY backend/Application/TarninaHub.Application.csproj ./backend/Application/ +COPY backend/Infrastructure/TarninaHub.Infrastructure.csproj ./backend/Infrastructure/ RUN dotnet restore ./backend/TarninaHub.csproj COPY backend/ ./backend/ COPY --from=client /src/client/dist ./backend/wwwroot/ diff --git a/scripts/build.mjs b/scripts/build.mjs index 138b354..368b5cf 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -15,6 +15,6 @@ function run(command) { run('npm --prefix client run build') run('node scripts/copy-client.mjs') -run('dotnet build HubMi.slnx --configuration Release') +run('dotnet build TarninaHub.slnx --configuration Release') console.log('\n[build] Done.')