aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorkj_sh6042026-02-14 00:36:28 -0500
committerkj_sh6042026-02-14 00:36:28 -0500
commit2891c9243ae29071784ac09731b8745b99e30744 (patch)
tree3363820dd1d9986cc22be40452ef36d51d2c1305 /Dockerfile
parent5d527cb99cd733f02db25ac4666e817699a8a5a0 (diff)
refactor: some `Dockerfile` size optimizations
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files 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