-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 737 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (17 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# VerifyDoc self-hosted server (REST API + web review UI + messaging bots).
# Build: docker build -t verifydoc .
# Run: docker run -p 8000:8000 verifydoc -> http://localhost:8000
FROM python:3.12-slim
WORKDIR /app
# system libs for image/PDF handling used by the pdf + ocr extras
RUN apt-get update \
&& apt-get install -y --no-install-recommends libgl1 libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY . /app
# server + local extraction (text/PDF/OCR) + the api extra so users can bring
# their own key for the api-vlm model (never a shared server key in the demo)
RUN pip install --no-cache-dir -e ".[server,pdf,ocr,api]"
EXPOSE 8000
ENV VERIFYDOC_HOST=0.0.0.0 \
VERIFYDOC_PORT=8000
CMD ["verifydoc-server"]