diff --git a/Backend/GestionIntegral.Api/Dockerfile b/Backend/GestionIntegral.Api/Dockerfile index 3887bc3..b573593 100644 --- a/Backend/GestionIntegral.Api/Dockerfile +++ b/Backend/GestionIntegral.Api/Dockerfile @@ -28,9 +28,18 @@ RUN dotnet publish "GestionIntegral.Api.csproj" -c Release -o /app/publish /p:Us FROM mcr.microsoft.com/dotnet/aspnet:9.0 WORKDIR /app -# La imagen mcr.microsoft.com/dotnet/aspnet:9.0 está basada en Debian. -# Necesitamos instalar libgdiplus para que System.Drawing y el motor de reportes funcionen. -RUN apt-get update && apt-get install -y libgdiplus libc6-dev && rm -rf /var/lib/apt/lists/* +# Instalamos libgdiplus + sus deps mínimas y creamos el symlink que .NET espera. +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + libgdiplus \ + libc6-dev \ + libx11-dev \ + libxrender1 \ + libxtst6 \ + libxi6 \ + fontconfig \ + && ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll \ + && rm -rf /var/lib/apt/lists/* COPY --from=publish /app/publish .