Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

cleanup orphan packages in packages stage of api dockerfile (#27617)

Bowen Liangee6458768ed4
diff --git a/api/Dockerfile b/api/Dockerfile
index 79a48927682..ed61923a40d 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -15,7 +15,11 @@ FROM base AS packages
# RUN sed -i '[email protected]@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