Skip to content

Commit d15ba37

Browse files
authored
update docker file to support low version npm package (#669)
### Type of change - [x] Refactoring
1 parent a553dc8 commit d15ba37

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ USER root
44
WORKDIR /ragflow
55

66
ADD ./web ./web
7-
RUN cd ./web && npm i && npm run build
7+
RUN cd ./web && npm i --force && npm run build
88

99
ADD ./api ./api
1010
ADD ./conf ./conf

Dockerfile.cuda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN /root/miniconda3/envs/py11/bin/pip install onnxruntime-gpu --extra-index-url
99

1010

1111
ADD ./web ./web
12-
RUN cd ./web && npm i && npm run build
12+
RUN cd ./web && npm i --force && npm run build
1313

1414
ADD ./api ./api
1515
ADD ./conf ./conf

Dockerfile.scratch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ADD ./requirements.txt ./requirements.txt
3434
RUN apt install openmpi-bin openmpi-common libopenmpi-dev
3535
ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/openmpi/lib:$LD_LIBRARY_PATH
3636
RUN rm /root/miniconda3/envs/py11/compiler_compat/ld
37-
RUN cd ./web && npm i && npm run build
37+
RUN cd ./web && npm i --force && npm run build
3838
RUN conda run -n py11 pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ./requirements.txt
3939

4040
RUN apt-get update && \

Dockerfile.scratch.oc9

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN dnf install -y openmpi openmpi-devel python3-openmpi
3535
ENV C_INCLUDE_PATH /usr/include/openmpi-x86_64:$C_INCLUDE_PATH
3636
ENV LD_LIBRARY_PATH /usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
3737
RUN rm /root/miniconda3/envs/py11/compiler_compat/ld
38-
RUN cd ./web && npm i && npm run build
38+
RUN cd ./web && npm i --force && npm run build
3939
RUN conda run -n py11 pip install $(grep -ivE "mpi4py" ./requirements.txt) # without mpi4py==3.1.5
4040
RUN conda run -n py11 pip install redis
4141

0 commit comments

Comments
 (0)