cnjack1991 commited on
Commit
e1fe06a
·
1 Parent(s): dedd003

Update the Dockerfile.cuda (#1545)

Browse files

Fix the `Dockerfile.cuda`, as the `/root/miniconda3/envs/py11/bin/pip`
is not found in the base images.

### What problem does this PR solve?

`/root/miniconda3/envs/py11/bin/pip` is not found in the base images.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):

Files changed (1) hide show
  1. Dockerfile.cuda +3 -2
Dockerfile.cuda CHANGED
@@ -4,8 +4,8 @@ USER root
4
  WORKDIR /ragflow
5
 
6
  ## for cuda > 12.0
7
- RUN /root/miniconda3/envs/py11/bin/pip uninstall -y onnxruntime-gpu
8
- RUN /root/miniconda3/envs/py11/bin/pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
9
 
10
 
11
  ADD ./web ./web
@@ -15,6 +15,7 @@ ADD ./api ./api
15
  ADD ./conf ./conf
16
  ADD ./deepdoc ./deepdoc
17
  ADD ./rag ./rag
 
18
 
19
  ENV PYTHONPATH=/ragflow/
20
  ENV HF_ENDPOINT=https://hf-mirror.com
 
4
  WORKDIR /ragflow
5
 
6
  ## for cuda > 12.0
7
+ RUN pip uninstall -y onnxruntime-gpu
8
+ RUN pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
9
 
10
 
11
  ADD ./web ./web
 
15
  ADD ./conf ./conf
16
  ADD ./deepdoc ./deepdoc
17
  ADD ./rag ./rag
18
+ ADD ./graph ./graph
19
 
20
  ENV PYTHONPATH=/ragflow/
21
  ENV HF_ENDPOINT=https://hf-mirror.com