添加pymupdf依赖

This commit is contained in:
2024-10-12 13:13:06 +08:00
parent f8280e87ee
commit bb6d9c3b47
2 changed files with 5 additions and 6 deletions

View File

@@ -11,14 +11,12 @@ ENV PYTHONUNBUFFERED=1 \
# 设置pip镜像地址加快安装速度
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
# 安装库
COPY sources.list /etc/apt/sources.list
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \
&& apt-get update && apt-get install libgl1
# 安装依赖
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \
&& sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources \
&& apt-get update && apt-get install libgl1 -y \
&& pip install --no-cache-dir -r requirements.txt
# 将当前目录内容复制到容器的/app内
COPY . /app