diff --git a/Backend/GestionIntegral.Api/Dockerfile b/Backend/GestionIntegral.Api/Dockerfile index 29f931c..00612a5 100644 --- a/Backend/GestionIntegral.Api/Dockerfile +++ b/Backend/GestionIntegral.Api/Dockerfile @@ -27,7 +27,6 @@ RUN dotnet publish "GestionIntegral.Api.csproj" -c Release -o /app/publish /p:Us # Usamos la imagen de runtime de ASP.NET, que es mucho más ligera que el SDK. FROM mcr.microsoft.com/dotnet/aspnet:9.0 WORKDIR /app -COPY --from=publish /app/publish . # Instalar dependencias de Chromium en la imagen de ASP.NET (basada en Debian) RUN apt-get update && apt-get install -y \ @@ -41,6 +40,8 @@ RUN apt-get update && apt-get install -y \ --no-install-recommends && \ rm -rf /var/lib/apt/lists/* +COPY --from=publish /app/publish . + # El puerto en el que la API escuchará DENTRO del contenedor. # Usaremos 8080 para evitar conflictos si en el futuro corres algo en el puerto 80. EXPOSE 8080 diff --git a/Backend/GestionIntegral.Api/GestionIntegral.Api.csproj b/Backend/GestionIntegral.Api/GestionIntegral.Api.csproj index 6b1fd82..1f564ed 100644 --- a/Backend/GestionIntegral.Api/GestionIntegral.Api.csproj +++ b/Backend/GestionIntegral.Api/GestionIntegral.Api.csproj @@ -4,7 +4,6 @@ net9.0 enable enable - false @@ -22,7 +21,11 @@ - + + + + PreserveNewest - \ No newline at end of file + +