diff --git a/phronCare.API/Dockerfile b/phronCare.API/Dockerfile index 3f76ec7..877fbd2 100644 --- a/phronCare.API/Dockerfile +++ b/phronCare.API/Dockerfile @@ -10,14 +10,26 @@ EXPOSE 8081 # Instalación de Node.js en la fase base (si lo necesitas para el contenedor final) #RUN apt-get update && apt-get install -y nodejs npm -# Instalación de Chromium y dependencias en la imagen base +# Instalación de Chromium y fuentes requeridas para PDF con acentos +USER root RUN apt-get update && \ - apt-get install -y wget gnupg2 ca-certificates fonts-liberation fonts-dejavu libappindicator3-1 libasound2 \ - libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 libnspr4 \ - libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils chromium && \ + apt-get install -y --no-install-recommends \ + wget gnupg2 ca-certificates \ + fonts-liberation \ + fonts-dejavu-core \ + fonts-dejavu-extra \ + libappindicator3-1 libasound2 \ + libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 \ + libgdk-pixbuf2.0-0 libnspr4 libnss3 libx11-xcb1 \ + libxcomposite1 libxdamage1 libxrandr2 xdg-utils chromium \ + debconf fontconfig && \ + echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections && \ + apt-get install -y --no-install-recommends ttf-mscorefonts-installer && \ + fc-cache -f && \ rm -rf /var/lib/apt/lists/* ENV CHROME_BIN=/usr/bin/chromium + USER app # Esta fase se usa para compilar el proyecto de servicio