db / Dockerfile
jamelloverz-sketch
feat: integrate search engine v2 (1024-dim + BM25 hybrid) with /search endpoint
2b11409
Raw
History Blame Contribute Delete
340 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends sqlite3 && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir numpy huggingface-hub
WORKDIR /app
COPY search_engine.py mass_fetcher.py /app/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 7860
ENTRYPOINT ["/entrypoint.sh"]