# Conjurer librarian (Crossref search + local DOI database lookup). # Build from the repository root: # docker build -f docker/Dockerfile.librarian -t conjurer-librarian . FROM python:3.11-slim RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY conjurer_librarian/requirements_librarian.txt ./ RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir -r requirements_librarian.txt requests COPY conjurer_librarian/ ./ ENV PYTHONUNBUFFERED=1 \ CONJURER_LIBRARIAN_HOST=0.0.0.0 \ CONJURER_LIBRARIAN_PORT=5001 \ CONJURER_LIBRARIAN_DB_PATH=/doi/ \ CONJURER_LIBRARIAN_STATE_DIR=/lib_temp_files # /doi = the local DOI chunk database (large, read-only). # /lib_temp_files = runtime JSON state (cr_results/rr_results/not_in_db/ # s_results) - seeded on first run, persisted across restarts. VOLUME ["/doi", "/lib_temp_files"] EXPOSE 5001 CMD ["python", "conjurer_librarian.py"]