fix: correct paths in Backend Dockerfile for docker compose build context
All checks were successful
CI/CD Pipeline / backend-build (push) Successful in 2m15s
CI/CD Pipeline / frontend-build (push) Successful in 53s
CI/CD Pipeline / docker-build (push) Successful in 7m14s

The docker-compose.yml uses 'context: .' (root), so paths must include 'Backend/' prefix.
This commit is contained in:
2026-04-03 19:15:29 -03:00
parent fd52352b21
commit d3e77ad9a5

View File

@@ -4,12 +4,12 @@ EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY PruebaGentle.Core/PruebaGentle.Core.csproj PruebaGentle.Core/
COPY PruebaGentle.Infrastructure/PruebaGentle.Infrastructure.csproj PruebaGentle.Infrastructure/
COPY PruebaGentle.API/PruebaGentle.API.csproj PruebaGentle.API/
RUN dotnet restore PruebaGentle.API/PruebaGentle.API.csproj
COPY Backend/PruebaGentle.Core/PruebaGentle.Core.csproj Backend/PruebaGentle.Core/
COPY Backend/PruebaGentle.Infrastructure/PruebaGentle.Infrastructure.csproj Backend/PruebaGentle.Infrastructure/
COPY Backend/PruebaGentle.API/PruebaGentle.API.csproj Backend/PruebaGentle.API/
RUN dotnet restore Backend/PruebaGentle.API/PruebaGentle.API.csproj
COPY . .
WORKDIR /src/PruebaGentle.API
WORKDIR /src/Backend/PruebaGentle.API
RUN dotnet build -c Release -o /app/build
FROM build AS publish