From ee6458768ed4b20f9455ea6f774b285040097d0f Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Tue, 4 Nov 2025 09:36:52 +0800 Subject: [PATCH] cleanup orphan packages in packages stage of api dockerfile (#27617) --- api/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 79a4892768..ed61923a40 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -15,7 +15,11 @@ FROM base AS packages # RUN sed -i 's@deb.debian.org@mirrors.aliyun.com@g' /etc/apt/sources.list.d/debian.sources RUN apt-get update \ - && apt-get install -y --no-install-recommends gcc g++ libc-dev libffi-dev libgmp-dev libmpfr-dev libmpc-dev + && apt-get install -y --no-install-recommends \ + # basic environment + g++ \ + # for building gmpy2 + libmpfr-dev libmpc-dev # Install Python dependencies COPY pyproject.toml uv.lock ./ @@ -49,7 +53,9 @@ RUN \ # Install dependencies && apt-get install -y --no-install-recommends \ # basic environment - curl nodejs libgmp-dev libmpfr-dev libmpc-dev \ + curl nodejs \ + # for gmpy2 \ + libgmp-dev libmpfr-dev libmpc-dev \ # For Security expat libldap-2.5-0 perl libsqlite3-0 zlib1g \ # install fonts to support the use of tools like pypdfium2