Se añaden librerias necesarias faltantes.
All checks were successful
Build and Deploy / remote-build-and-deploy (push) Successful in 19m20s
All checks were successful
Build and Deploy / remote-build-and-deploy (push) Successful in 19m20s
This commit is contained in:
@@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user