diff options
| author | kj_sh604 | 2026-02-15 20:16:50 -0500 |
|---|---|---|
| committer | kj_sh604 | 2026-02-15 20:16:50 -0500 |
| commit | fafc3e29832779b5ccbea8fd21dc9fd5af67de38 (patch) | |
| tree | bc366424bcaa40c3f62750031b9a6313074fe922 /Dockerfile | |
| parent | 13cb49893347f6c60e2ff0d07a1c9bc79abbca28 (diff) | |
refactor: HIGH CVE fixes
also commit to the bigger image size and just install all the fonts
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 297 |
1 files changed, 151 insertions, 146 deletions
@@ -5,6 +5,8 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 +ARG DEBIAN_FRONTEND=noninteractive + # system deps + libreoffice fresh ppa RUN apt-get update && \ apt-get install -y --no-install-recommends \ @@ -18,156 +20,159 @@ RUN apt-get update && \ python3-venv \ libreoffice \ poppler-utils \ - # fonts-liberation2 \ - # fonts-dejavu \ - # fonts-dejavu-extra \ - # fonts-noto \ - # fonts-noto-color-emoji \ - # fonts-noto-core \ - # fonts-noto-extra \ - # fonts-noto-ui-core \ - # fonts-noto-ui-extra \ - # fonts-noto-cjk \ - # fonts-noto-cjk-extra \ - # fonts-noto-hinted \ - # fonts-noto-unhinted \ - # fonts-freefont-ttf \ - # fonts-urw-base35 \ - # fonts-font-awesome \ - # fonts-powerline \ - # ttf-mscorefonts-installer \ - # fonts-cascadia-code \ - # fonts-firacode \ - # fonts-roboto \ - # fonts-roboto-slab \ - # fonts-ubuntu \ - # fonts-hack \ - # fonts-lato \ - # fonts-open-sans \ - # fonts-inconsolata \ - # fonts-droid-fallback \ - # fonts-symbola \ - # fonts-ancient-scripts \ - # fonts-indic \ - # fonts-beng \ - # fonts-deva \ - # fonts-gargi \ - # fonts-gubbi \ - # fonts-gujr \ - # fonts-guru \ - # fonts-kalapi \ - # fonts-knda \ - # fonts-lohit-beng-assamese \ - # fonts-lohit-beng-bengali \ - # fonts-lohit-deva \ - # fonts-lohit-gujr \ - # fonts-lohit-guru \ - # fonts-lohit-knda \ - # fonts-lohit-mlym \ - # fonts-lohit-orya \ - # fonts-lohit-taml \ - # fonts-lohit-taml-classical \ - # fonts-lohit-telu \ - # fonts-mlym \ - # fonts-navilu \ - # fonts-orya \ - # fonts-pagul \ - # fonts-sahadeva \ - # fonts-samyak-deva \ - # fonts-samyak-gujr \ - # fonts-samyak-mlym \ - # fonts-samyak-taml \ - # fonts-sarai \ - # fonts-smc \ - # fonts-taml \ - # fonts-telu \ - # fonts-tlwg-garuda \ - # fonts-tlwg-kinnari \ - # fonts-tlwg-loma \ - # fonts-tlwg-mono \ - # fonts-tlwg-norasi \ - # fonts-tlwg-purisa \ - # fonts-tlwg-sawasdee \ - # fonts-tlwg-typewriter \ - # fonts-tlwg-typist \ - # fonts-tlwg-typo \ - # fonts-tlwg-umpush \ - # fonts-tlwg-waree \ - # fonts-arphic-ukai \ - # fonts-arphic-uming \ - # fonts-wqy-microhei \ - # fonts-wqy-zenhei \ - # fonts-ipafont \ - # fonts-ipafont-gothic \ - # fonts-ipafont-mincho \ - # fonts-ipaexfont \ - # fonts-ipaexfont-gothic \ - # fonts-ipaexfont-mincho \ - # fonts-takao \ - # fonts-takao-gothic \ - # fonts-takao-mincho \ - # fonts-vlgothic \ - # fonts-hanazono \ - # fonts-khmeros \ - # fonts-lao \ - # fonts-sil-abyssinica \ - # fonts-sil-ezra \ - # fonts-sil-padauk \ - # fonts-sil-scheherazade \ - # fonts-thai-tlwg \ - # fonts-lklug-sinhala \ - # fonts-kacst \ - # fonts-kacst-one \ - # fonts-farsiweb \ - # fonts-smc-anjalioldlipi \ - # fonts-smc-chilanka \ - # fonts-smc-dyuthi \ - # fonts-smc-karumbi \ - # fonts-smc-keraleeyam \ - # fonts-smc-manjari \ - # fonts-smc-meera \ - # fonts-smc-rachana \ - # fonts-smc-raghumalayalamsans \ - # fonts-smc-suruma \ - # fonts-smc-uroob \ - # fonts-yrsa-rasa \ - # fonts-cantarell \ - # fonts-comfortaa \ - # fonts-croscore \ - # fonts-ebgaramond \ - # fonts-fantasque-sans \ - # fonts-junicode \ - # fonts-lyx \ - # fonts-mathjax \ - # fonts-nanum \ - # fonts-nanum-coding \ - # fonts-nanum-extra \ - # fonts-opensymbol \ - # fonts-quicksand \ - # fonts-sil-gentium \ - # fonts-sil-gentiumplus \ - # fonts-stix \ - # fonts-texgyre \ - # fonts-terminus \ - # fonts-dejavu-mono \ - # fonts-linuxlibertine \ - # fonts-arkpandora \ - # fonts-beteckna \ - # fonts-gfs-artemisia \ - # fonts-gfs-complutum \ - # fonts-gfs-didot \ - # fonts-gfs-neohellenic \ - # fonts-gfs-olga \ - # fonts-gfs-solomos \ - # fonts-gfs-theokritos \ + fonts-liberation2 \ + fonts-dejavu \ + fonts-dejavu-extra \ + fonts-noto \ + fonts-noto-color-emoji \ + fonts-noto-core \ + fonts-noto-extra \ + fonts-noto-ui-core \ + fonts-noto-ui-extra \ + fonts-noto-cjk \ + fonts-noto-cjk-extra \ + fonts-noto-hinted \ + fonts-noto-unhinted \ + fonts-freefont-ttf \ + fonts-urw-base35 \ + fonts-font-awesome \ + fonts-powerline \ + ttf-mscorefonts-installer \ + fonts-cascadia-code \ + fonts-firacode \ + fonts-roboto \ + fonts-roboto-slab \ + fonts-ubuntu \ + fonts-hack \ + fonts-lato \ + fonts-open-sans \ + fonts-inconsolata \ + fonts-droid-fallback \ + fonts-symbola \ + fonts-ancient-scripts \ + fonts-indic \ + fonts-beng \ + fonts-deva \ + fonts-gargi \ + fonts-gubbi \ + fonts-gujr \ + fonts-guru \ + fonts-kalapi \ + fonts-knda \ + fonts-lohit-beng-assamese \ + fonts-lohit-beng-bengali \ + fonts-lohit-deva \ + fonts-lohit-gujr \ + fonts-lohit-guru \ + fonts-lohit-knda \ + fonts-lohit-mlym \ + fonts-lohit-orya \ + fonts-lohit-taml \ + fonts-lohit-taml-classical \ + fonts-lohit-telu \ + fonts-mlym \ + fonts-navilu \ + fonts-orya \ + fonts-pagul \ + fonts-sahadeva \ + fonts-samyak-deva \ + fonts-samyak-gujr \ + fonts-samyak-mlym \ + fonts-samyak-taml \ + fonts-sarai \ + fonts-smc \ + fonts-taml \ + fonts-telu \ + fonts-tlwg-garuda \ + fonts-tlwg-kinnari \ + fonts-tlwg-loma \ + fonts-tlwg-mono \ + fonts-tlwg-norasi \ + fonts-tlwg-purisa \ + fonts-tlwg-sawasdee \ + fonts-tlwg-typewriter \ + fonts-tlwg-typist \ + fonts-tlwg-typo \ + fonts-tlwg-umpush \ + fonts-tlwg-waree \ + fonts-arphic-ukai \ + fonts-arphic-uming \ + fonts-wqy-microhei \ + fonts-wqy-zenhei \ + fonts-ipafont \ + fonts-ipafont-gothic \ + fonts-ipafont-mincho \ + fonts-ipaexfont \ + fonts-ipaexfont-gothic \ + fonts-ipaexfont-mincho \ + fonts-takao \ + fonts-takao-gothic \ + fonts-takao-mincho \ + fonts-vlgothic \ + fonts-hanazono \ + fonts-khmeros \ + fonts-lao \ + fonts-sil-abyssinica \ + fonts-sil-ezra \ + fonts-sil-padauk \ + fonts-sil-scheherazade \ + fonts-thai-tlwg \ + fonts-lklug-sinhala \ + fonts-kacst \ + fonts-kacst-one \ + fonts-farsiweb \ + fonts-smc-anjalioldlipi \ + fonts-smc-chilanka \ + fonts-smc-dyuthi \ + fonts-smc-karumbi \ + fonts-smc-keraleeyam \ + fonts-smc-manjari \ + fonts-smc-meera \ + fonts-smc-rachana \ + fonts-smc-raghumalayalamsans \ + fonts-smc-suruma \ + fonts-smc-uroob \ + fonts-yrsa-rasa \ + fonts-cantarell \ + fonts-comfortaa \ + fonts-croscore \ + fonts-ebgaramond \ + fonts-fantasque-sans \ + fonts-junicode \ + fonts-lyx \ + fonts-mathjax \ + fonts-nanum \ + fonts-nanum-coding \ + fonts-nanum-extra \ + fonts-opensymbol \ + fonts-quicksand \ + fonts-sil-gentium \ + fonts-sil-gentiumplus \ + fonts-stix \ + fonts-texgyre \ + fonts-terminus \ + fonts-dejavu-mono \ + fonts-linuxlibertine \ + fonts-arkpandora \ + fonts-beteckna \ + fonts-gfs-artemisia \ + fonts-gfs-complutum \ + fonts-gfs-didot \ + fonts-gfs-neohellenic \ + fonts-gfs-olga \ + fonts-gfs-solomos \ + fonts-gfs-theokritos \ fonts-liberation \ - fonts-dejavu-core && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* + fonts-dejavu-core # python deps COPY src/requirements.txt /tmp/requirements.txt -RUN pip3 install --no-cache-dir --no-compile --break-system-packages -r /tmp/requirements.txt +RUN pip3 install --no-cache-dir --no-compile --break-system-packages -r /tmp/requirements.txt && \ + pip3 install --no-cache-dir --no-compile --break-system-packages --ignore-installed setuptools>=78.1.1 wheel>=0.46.2 && \ + apt-get remove --autoremove --purge -y python3-setuptools python3-wheel software-properties-common && \ + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* # kjandoc binary -> /usr/local/bin COPY src/kjandoc /usr/local/bin/kjandoc |
