docker debugging modification (#82)

This commit is contained in:
KevinHuSh
2024-02-28 18:57:43 +08:00
committed by GitHub
parent 332d4874d0
commit 320cbf545f
7 changed files with 99 additions and 74 deletions

View File

@ -1,14 +1,20 @@
FROM infiniflow/ragflow-base:v1.0
USER root
WORKDIR /ragflow
COPY . ./
RUN cd ./web && npm i && npm build
ADD ./web ./web
RUN cd ./web && npm i && npm run build
ENV PYTHONPATH=/ragflow
ADD ./api ./api
ADD ./conf ./conf
ADD ./deepdoc ./deepdoc
ADD ./rag ./rag
ENV PYTHONPATH=/ragflow/
ENV HF_ENDPOINT=https://hf-mirror.com
COPY docker/entrypoint.sh ./
ADD docker/entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.sh"]