添加pymupdf依赖
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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
|
||||
|
||||
@@ -4,6 +4,7 @@ OpenCC==1.1.9 # 中文繁简转换
|
||||
opencv-python==4.6.0.66
|
||||
opencv-python-headless==4.10.0.84
|
||||
pillow==10.4.0
|
||||
PyMuPDF==1.24.9 # pdf处理
|
||||
pymysql==1.1.1
|
||||
requests==2.32.3
|
||||
sqlacodegen==2.3.0.post1 # 实体类生成
|
||||
|
||||
Reference in New Issue
Block a user