2026-03-31 17:36:04 -03:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
|
|
|
WORKDIR /src
|
2026-04-03 19:15:29 -03:00
|
|
|
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
|
2026-03-31 17:36:04 -03:00
|
|
|
COPY . .
|
2026-04-03 19:15:29 -03:00
|
|
|
WORKDIR /src/Backend/PruebaGentle.API
|
2026-03-31 17:36:04 -03:00
|
|
|
RUN dotnet build -c Release -o /app/build
|
|
|
|
|
|
|
|
|
|
FROM build AS publish
|
|
|
|
|
RUN dotnet publish -c Release -o /app/publish
|
|
|
|
|
|
|
|
|
|
FROM base AS final
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
COPY --from=publish /app/publish .
|
|
|
|
|
ENTRYPOINT ["dotnet", "PruebaGentle.API.dll"]
|