From d3e77ad9a5f7f583b0bd509e51b7903c329345a4 Mon Sep 17 00:00:00 2001 From: dmolinari Date: Fri, 3 Apr 2026 19:15:29 -0300 Subject: [PATCH] fix: correct paths in Backend Dockerfile for docker compose build context The docker-compose.yml uses 'context: .' (root), so paths must include 'Backend/' prefix. --- Backend/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Backend/Dockerfile b/Backend/Dockerfile index b245930..72e3e1b 100644 --- a/Backend/Dockerfile +++ b/Backend/Dockerfile @@ -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