File size: 652 Bytes
e1ec593
 
 
 
 
9dfd584
e1ec593
 
ba399c2
 
de100ce
e1ec593
 
 
cc996f7
 
 
e1ec593
 
 
 
 
e22a4fe
 
 
 
8f0f48f
e1ec593
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.10-slim

WORKDIR /app

RUN apt-get update && \
    apt-get install -y git curl git-lfs && \
    rm -rf /var/lib/apt/lists/*

RUN uname -a

RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.python.sh | bash

COPY . /app

RUN which git-lfs

RUN pip install graphrag==1.0.0 fastapi uvicorn

COPY search.py /usr/local/lib/python3.10/site-packages/graphrag/query/structured_search/local_search/search.py

RUN chmod +x /app/start.sh

RUN git clone https://huggingface.co/datasets/nameliu/graphrag-data && \
    cd graphrag-data && \
    git checkout master && \
    git-lfs pull

EXPOSE 8080

CMD ["/app/start.sh"]