summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkj_sh6042026-02-14 00:36:28 -0500
committerkj_sh6042026-02-14 00:36:28 -0500
commit2891c9243ae29071784ac09731b8745b99e30744 (patch)
tree3363820dd1d9986cc22be40452ef36d51d2c1305
parent5d527cb99cd733f02db25ac4666e817699a8a5a0 (diff)
refactor: some `Dockerfile` size optimizations
-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 @@
1FROM ubuntu:24.04 1FROM ubuntu:24.04
2 2
3ENV PYTHONUNBUFFERED=1 3ENV PYTHONDONTWRITEBYTECODE=1 \
4 PYTHONUNBUFFERED=1 \
5 PIP_NO_CACHE_DIR=1 \
6 PIP_DISABLE_PIP_VERSION_CHECK=1
4 7
5# system deps + libreoffice fresh ppa 8# system deps + libreoffice fresh ppa
6RUN apt-get update && \ 9RUN apt-get update && \
@@ -22,7 +25,7 @@ RUN apt-get update && \
22 25
23# python deps 26# python deps
24COPY src/requirements.txt /tmp/requirements.txt 27COPY src/requirements.txt /tmp/requirements.txt
25RUN pip3 install --no-cache-dir --break-system-packages -r /tmp/requirements.txt 28RUN pip3 install --no-cache-dir --no-compile --break-system-packages -r /tmp/requirements.txt
26 29
27# kjandoc binary -> /usr/local/bin 30# kjandoc binary -> /usr/local/bin
28COPY src/kjandoc /usr/local/bin/kjandoc 31COPY src/kjandoc /usr/local/bin/kjandoc