diff --git a/Dockerfile b/Dockerfile index c98150910..7ee1471cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ USER root WORKDIR /ragflow ADD ./web ./web -RUN cd ./web && npm i && npm run build +RUN cd ./web && npm i --force && npm run build ADD ./api ./api ADD ./conf ./conf diff --git a/Dockerfile.cuda b/Dockerfile.cuda index 2bed3fb61..e8c48a3a4 100644 --- a/Dockerfile.cuda +++ b/Dockerfile.cuda @@ -9,7 +9,7 @@ RUN /root/miniconda3/envs/py11/bin/pip install onnxruntime-gpu --extra-index-url ADD ./web ./web -RUN cd ./web && npm i && npm run build +RUN cd ./web && npm i --force && npm run build ADD ./api ./api ADD ./conf ./conf diff --git a/Dockerfile.scratch b/Dockerfile.scratch index 3e9483eb7..eb0594087 100644 --- a/Dockerfile.scratch +++ b/Dockerfile.scratch @@ -34,7 +34,7 @@ ADD ./requirements.txt ./requirements.txt RUN apt install openmpi-bin openmpi-common libopenmpi-dev ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/openmpi/lib:$LD_LIBRARY_PATH RUN rm /root/miniconda3/envs/py11/compiler_compat/ld -RUN cd ./web && npm i && npm run build +RUN cd ./web && npm i --force && npm run build RUN conda run -n py11 pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ./requirements.txt RUN apt-get update && \ diff --git a/Dockerfile.scratch.oc9 b/Dockerfile.scratch.oc9 index ffb2272bd..414ccddf3 100644 --- a/Dockerfile.scratch.oc9 +++ b/Dockerfile.scratch.oc9 @@ -35,7 +35,7 @@ RUN dnf install -y openmpi openmpi-devel python3-openmpi ENV C_INCLUDE_PATH /usr/include/openmpi-x86_64:$C_INCLUDE_PATH ENV LD_LIBRARY_PATH /usr/lib64/openmpi/lib:$LD_LIBRARY_PATH RUN rm /root/miniconda3/envs/py11/compiler_compat/ld -RUN cd ./web && npm i && npm run build +RUN cd ./web && npm i --force && npm run build RUN conda run -n py11 pip install $(grep -ivE "mpi4py" ./requirements.txt) # without mpi4py==3.1.5 RUN conda run -n py11 pip install redis