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