File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Use Python 3.12 slim image
2- FROM ghcr.io/docling-project/docling-serve-cu126
1+ FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel
2+ # FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime
33
4- RUN # apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
4+ # RUN apt-get update && apt install python3 install ffmpeg libsm6 libxext6 nvtop -y
55
66# Set working directory
77WORKDIR /app
@@ -15,8 +15,12 @@ COPY . .
1515# Sync dependencies using uv
1616RUN uv sync --frozen
1717
18+ RUN pip install optimum[onnxruntime-gpu]
19+
20+ RUN uv pip install optimum[onnxruntime-gpu]
21+
1822# Create Documents directory
19- RUN mkdir -p /app /Documents
23+ RUN mkdir -p /api /Documents
2024
2125# Expose the default port
2226#EXPOSE 8001
@@ -27,4 +31,4 @@ RUN mkdir -p /app/Documents
2731ENV PYTHONUNBUFFERED=1
2832
2933# Run the server
30- CMD ["uv", "run", "fetchcraft-openapi -server"]
34+ CMD ["uv", "run", "fetchcraft-docling -server"]
You can’t perform that action at this time.
0 commit comments