docling / Dockerfile
wynai's picture
Update Dockerfile
fb00f82 verified
raw
history blame contribute delete
410 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
git curl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
ENV HOME=/app \
HF_HOME=/app/.cache/huggingface
RUN mkdir -p /app/.EasyOCR /app/.cache/huggingface && \
chmod -R 777 /app
RUN pip install --no-cache-dir "docling-serve[ui]"
EXPOSE 7860
CMD ["docling-serve", "run", "--host", "0.0.0.0", "--port", "7860", "--enable-ui"]