From 2891c9243ae29071784ac09731b8745b99e30744 Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Sat, 14 Feb 2026 00:36:28 -0500 Subject: refactor: some `Dockerfile` size optimizations --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8fe61b3..2e6a62d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ FROM ubuntu:24.04 -ENV PYTHONUNBUFFERED=1 +ENV PYTHONDONTWRITEBYTECODE=1 \ + PYTHONUNBUFFERED=1 \ + PIP_NO_CACHE_DIR=1 \ + PIP_DISABLE_PIP_VERSION_CHECK=1 # system deps + libreoffice fresh ppa RUN apt-get update && \ @@ -22,7 +25,7 @@ RUN apt-get update && \ # python deps COPY src/requirements.txt /tmp/requirements.txt -RUN pip3 install --no-cache-dir --break-system-packages -r /tmp/requirements.txt +RUN pip3 install --no-cache-dir --no-compile --break-system-packages -r /tmp/requirements.txt # kjandoc binary -> /usr/local/bin COPY src/kjandoc /usr/local/bin/kjandoc -- cgit v1.2.3