chore: squash system dependencies installation steps (#13206)

This commit is contained in:
Bowen Liang 2025-02-05 16:42:53 +08:00 committed by GitHub
parent e8b3b7e578
commit 8fbb355cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,18 +48,18 @@ ENV TZ=UTC
WORKDIR /app/api WORKDIR /app/api
RUN apt-get update \ RUN \
&& apt-get install -y --no-install-recommends curl nodejs libgmp-dev libmpfr-dev libmpc-dev \ apt-get update \
# if you located in China, you can use aliyun mirror to speed up # Install dependencies
# && echo "deb http://mirrors.aliyun.com/debian testing main" > /etc/apt/sources.list \ && apt-get install -y --no-install-recommends \
&& echo "deb http://deb.debian.org/debian bookworm main" > /etc/apt/sources.list \ # basic environment
&& apt-get update \ curl nodejs libgmp-dev libmpfr-dev libmpc-dev \
# For Security # For Security
&& apt-get install -y --no-install-recommends expat libldap-2.5-0 perl libsqlite3-0 zlib1g \ expat libldap-2.5-0 perl libsqlite3-0 zlib1g \
# install a chinese font to support the use of tools like matplotlib # install a chinese font to support the use of tools like matplotlib
&& apt-get install -y fonts-noto-cjk \ fonts-noto-cjk \
# install libmagic to support the use of python-magic guess MIMETYPE # install libmagic to support the use of python-magic guess MIMETYPE
&& apt-get install -y libmagic1 \ libmagic1 \
&& apt-get autoremove -y \ && apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*