fix: 解决magic-doc包的问题
This commit is contained in:
parent
0820d7bba2
commit
afddcf4dd7
|
|
@ -13,18 +13,14 @@ RUN apt-get update && apt-get install -y \
|
|||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
# Copy requirements and install Python packages
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install uv
|
||||
|
||||
# Configure uv and install mineru
|
||||
ENV UV_SYSTEM_PYTHON=1
|
||||
RUN uv pip install --system -U "fairy-doc[cpu]"
|
||||
|
||||
# Copy requirements and install Python packages first
|
||||
COPY requirements.txt .
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Install fairy-doc after numpy and opencv are installed
|
||||
RUN pip install --no-cache-dir "fairy-doc[cpu]"
|
||||
|
||||
# Copy the application code
|
||||
COPY app/ ./app/
|
||||
|
||||
|
|
|
|||
|
|
@ -3,3 +3,5 @@ uvicorn[standard]==0.24.0
|
|||
python-multipart==0.0.6
|
||||
# fairy-doc[cpu]==0.1.0
|
||||
pydantic==2.5.0
|
||||
numpy==1.24.3
|
||||
opencv-python==4.8.1.78
|
||||
|
|
|
|||
Loading…
Reference in New Issue