From 898f489683702788ad43aa2729a91c019aa6ba0d Mon Sep 17 00:00:00 2001 From: Elijah Tan <60286615+Elijah-0616@users.noreply.github.com> Date: Thu, 4 May 2023 16:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E9=95=9C=E5=83=8F=E6=BA=90?= =?UTF-8?q?=E4=BB=A5=E5=8A=A0=E5=BF=AB=E5=9B=BD=E5=86=85=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile-cn | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile-cn diff --git a/Dockerfile-cn b/Dockerfile-cn new file mode 100644 index 00000000..5ac60ab0 --- /dev/null +++ b/Dockerfile-cn @@ -0,0 +1,26 @@ +FROM python:3.11.2-slim-bullseye + +ENV DEBIAN_FRONTEND=noninteractive + +COPY ./fonts/sarasa-mono-sc-regular.ttf /usr/share/fonts/ + +RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list +RUN cat /etc/apt/sources.list + +RUN apt-get update && \ + apt install --no-install-recommends xvfb binutils qtbase5-dev wkhtmltopdf ffmpeg -yq && \ + (strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 || true) && \ + apt-get remove --purge -yq binutils && \ + apt-get clean && \ + apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \ + rm -rf /var/lib/apt/lists/* + +RUN mkdir -p /app +WORKDIR /app + +COPY requirements.txt /app +RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn --no-cache-dir -r requirements.txt && pip cache purge + +COPY . /app + +CMD ["/bin/bash", "/app/docker/start.sh"]