From fdaf6a72f385ca1172f895933b01eb02a0352bc9 Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Mon, 21 Oct 2024 12:03:05 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=20=20=E6=96=B0=E5=A2=9E=20process=20loo?= =?UTF-8?q?kbooks=20=E6=8E=A5=E5=8F=A3=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + gunicorn_config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b357582..d1ddc5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ RUN apt update RUN apt install -y vim RUN apt install -y libgl1-mesa-glx RUN apt install -y poppler-utils +RUN apt install -y tesseract-ocr COPY ./requirements.txt /requirements.txt RUN pip install --upgrade pip diff --git a/gunicorn_config.py b/gunicorn_config.py index 3e2569d..61a9da0 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -36,4 +36,4 @@ accesslog = 'access.log' access_log_format = '%(h)s %(t)s %(U)s %(q)s' # 设置超时时间为 5 分钟(300 秒) -timeout = 300 \ No newline at end of file +timeout = 600 \ No newline at end of file