Skip to content

Commit 98ed780

Browse files
committed
v0.9.4
1 parent bd2f618 commit 98ed780

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

Dockerfile-gpu

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
77
WORKDIR /app
@@ -15,8 +15,12 @@ COPY . .
1515
# Sync dependencies using uv
1616
RUN 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
2731
ENV PYTHONUNBUFFERED=1
2832

2933
# Run the server
30-
CMD ["uv", "run", "fetchcraft-openapi-server"]
34+
CMD ["uv", "run", "fetchcraft-docling-server"]

0 commit comments

Comments
 (0)