From be60e91b90c3a0f3141615ecab9cc1bc0a608de5 Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Mon, 17 Feb 2025 11:46:23 +0800 Subject: [PATCH] upgrade Unstructured version --- api/Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index f078181264..83ee837dc7 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -49,18 +49,18 @@ ENV TZ=UTC WORKDIR /app/api RUN apt-get update \ - && apt-get install -y --no-install-recommends curl nodejs libgmp-dev libmpfr-dev libmpc-dev \ - # if you located in China, you can use aliyun mirror to speed up - # && echo "deb http://mirrors.aliyun.com/debian testing main" > /etc/apt/sources.list \ - && 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 expat=2.6.3-1 libldap-2.5-0=2.5.18+dfsg-3+b1 perl=5.40.0-6 libsqlite3-0=3.46.1-1 \ - # install a chinese font to support the use of tools like matplotlib - && apt-get install -y fonts-noto-cjk \ + # Install dependencies + && apt-get install -y --no-install-recommends \ + # basic environment + curl nodejs libgmp-dev libmpfr-dev libmpc-dev \ + # For Security + expat libldap-2.5-0 perl libsqlite3-0 zlib1g \ + # install a chinese font to support the use of tools like matplotlib + fonts-noto-cjk \ + # install libmagic to support the use of python-magic guess MIMETYPE + libmagic1 \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* - # Copy Python environment and packages ENV VIRTUAL_ENV=/app/api/.venv COPY --from=packages ${VIRTUAL_ENV} ${VIRTUAL_ENV}