Skip to content
Snippets Groups Projects
Commit f05e4dac authored by Michal Masrna's avatar Michal Masrna
Browse files

changed ragflow Dockerfile to chown all files to user 1000

parent ffe276a1
No related branches found
No related tags found
No related merge requests found
FROM swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow-base:v1.0
FROM swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow-base:v1.0 as src
USER root
WORKDIR /ragflow
......@@ -10,11 +10,16 @@ ADD ./api ./api
ADD ./conf ./conf
ADD ./deepdoc ./deepdoc
ADD ./rag ./rag
ADD docker/entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
FROM scratch
COPY --from=src --chown=1000:1000 / /
WORKDIR /ragflow
ENV PYTHONPATH=/ragflow/
ENV HF_ENDPOINT=https://hf-mirror.com
ADD docker/entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment