From 649900ad212f993e45651b09827b674e5a4861c6 Mon Sep 17 00:00:00 2001 From: devsjc <47188100+devsjc@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:35:16 +0100 Subject: [PATCH] fix(containerfile): Speed up containerfile creation --- Containerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 6592a18f..91eab598 100644 --- a/Containerfile +++ b/Containerfile @@ -26,13 +26,12 @@ RUN --mount=type=cache,target=/root/.cache \ uv pip install --no-deps --python=$UV_PROJECT_ENVIRONMENT /src && \ cp -r /usr/local/lib/python3.12 /venv/lib/ && \ cp --remove-destination /usr/local/bin/python3.12 /venv/bin/python && \ - cp --remove-destination /usr/lib/aarch64-linux-gnu/ld-linux-aarch64.so.1 /lib/ && \ cp /usr/local/lib/libpython3.12.so.1.0 /venv/lib/ && \ rm -r /venv/lib/python3.12/site-packages/**/tests && \ rm -r /venv/lib/python3.12/site-packages/**/_*cache* && \ rm /venv/lib/python3.12/site-packages/numpy.libs/libscipy_openblas64_-0f683016.so -RUN du -ah /venv/lib/python3.12/site-packages --max-depth=2 | sort -h | tail -n 30 +# cp --remove-destination /usr/lib/aarch64-linux-gnu/ld-linux-aarch64.so.1 /lib/ && \ # Copy the virtualenv into a distroless image # * These are small images that only contain the runtime dependencies FROM gcr.io/distroless/python3-debian11