From db87e09333380debd9bb94e2ec13cfab51c56068 Mon Sep 17 00:00:00 2001 From: Lasse Rune Hansen Date: Fri, 5 Jun 2026 12:35:33 +0200 Subject: [PATCH] fix(infra): correct Dockerfile paths relative to build context - Fix backend Dockerfile: COPY paths relative to GermanApp/ context - Fix frontend Dockerfile: paths relative to german-app-frontend/ context Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- GermanApp/Dockerfile | 7 ++++--- german-app-frontend/Dockerfile | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/GermanApp/Dockerfile b/GermanApp/Dockerfile index b2ed5d0..dea9f3f 100644 --- a/GermanApp/Dockerfile +++ b/GermanApp/Dockerfile @@ -1,6 +1,7 @@ # GermanApp Backend Dockerfile # .NET 9.0 Web API Application # Multi-stage build for production optimization +# Build context: GermanApp directory # ============================================ # Build Stage @@ -9,12 +10,12 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /src # Copy project file and restore dependencies -COPY ["GermanApp/GermanApp.csproj", "GermanApp/"] -RUN dotnet restore "GermanApp/GermanApp.csproj" +COPY ["GermanApp.csproj", "."] +RUN dotnet restore "GermanApp.csproj" # Copy everything else and build COPY . . -WORKDIR "/src/GermanApp" +WORKDIR "/src" RUN dotnet build "GermanApp.csproj" -c Release -o /app/build # Publish the application diff --git a/german-app-frontend/Dockerfile b/german-app-frontend/Dockerfile index a895b6f..d1d82e3 100644 --- a/german-app-frontend/Dockerfile +++ b/german-app-frontend/Dockerfile @@ -1,6 +1,7 @@ # GermanApp Frontend Dockerfile # React 19 + TypeScript + Vite Application # Multi-stage build for production optimization +# Build context: german-app-frontend directory # ============================================ # Build Stage