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.

fix(Dockerfile): conditionally install zlib1g based on architecture (#10118)

-LAN-05d9adeb99b5
diff --git a/api/Dockerfile b/api/Dockerfile
index 1d13be8bf32..1f84fab6576 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -55,7 +55,12 @@ RUN apt-get update \
&& echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
&& apt-get update \
# For Security
- && apt-get install -y --no-install-recommends zlib1g=1:1.3.dfsg+really1.3.1-1+b1 expat=2.6.3-2 libldap-2.5-0=2.5.18+dfsg-3+b1 perl=5.40.0-6 libsqlite3-0=3.46.1-1 \
+ && apt-get install -y --no-install-recommends expat=2.6.3-2 libldap-2.5-0=2.5.18+dfsg-3+b1 perl=5.40.0-6 libsqlite3-0=3.46.1-1 \
+ && if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
+ apt-get install -y --no-install-recommends zlib1g=1:1.3.dfsg+really1.3.1-1+b1; \
+ else \
+ apt-get install -y --no-install-recommends zlib1g=1:1.3.dfsg+really1.3.1-1; \
+ fi \
# install a chinese font to support the use of tools like matplotlib
&& apt-get install -y fonts-noto-cjk \
&& apt-get autoremove -y \