File tree Expand file tree Collapse file tree 5 files changed +1
-14
lines changed Expand file tree Collapse file tree 5 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ FROM python:3.11-slim
66ENV LANG=C.UTF-8
77
88ARG ARCH="cpu"
9- ARG SERVICE="all"
109
1110RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
1211 git \
@@ -24,15 +23,7 @@ RUN pip install --no-cache-dir --upgrade pip setuptools
2423RUN if [ ${ARCH} = "cpu" ]; then \
2524 pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu; \
2625 fi && \
27- if [ ${SERVICE} = "videoqna" ]; then \
28- pip install --no-cache-dir -r /home/user/comps/rerankings/src/requirements_videoqna.txt; \
29- elif [ ${SERVICE} = "all" ]; then \
30- git clone https://github.com/IntelLabs/fastRAG.git /home/user/fastRAG && \
31- cd /home/user/fastRAG && \
32- pip install --no-cache-dir . && \
33- pip install --no-cache-dir .[intel] && \
34- pip install --no-cache-dir -r /home/user/comps/rerankings/src/requirements_videoqna.txt; \
35- fi && \
26+ pip install --no-cache-dir -r /home/user/comps/rerankings/src/requirements_videoqna.txt && \
3627 pip install --no-cache-dir -r /home/user/comps/rerankings/src/requirements.txt;
3728
3829COPY comps /home/user/comps
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ function build_docker_images() {
1414 -t opea/reranking:comps \
1515 --build-arg https_proxy=$https_proxy \
1616 --build-arg http_proxy=$http_proxy \
17- --build-arg SERVICE=ovms \
1817 -f comps/rerankings/src/Dockerfile .
1918 if [ $? -ne 0 ]; then
2019 echo " opea/reranking built fail"
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ function build_docker_images() {
1515 -t opea/reranking:comps \
1616 --build-arg https_proxy=$https_proxy \
1717 --build-arg http_proxy=$http_proxy \
18- --build-arg SERVICE=tei \
1918 -f comps/rerankings/src/Dockerfile .
2019 if [ $? -ne 0 ]; then
2120 echo " opea/reranking built fail"
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ function build_docker_images() {
1515 -t opea/reranking:comps \
1616 --build-arg https_proxy=$https_proxy \
1717 --build-arg http_proxy=$http_proxy \
18- --build-arg SERVICE=tei \
1918 -f comps/rerankings/src/Dockerfile .
2019 if [ $? -ne 0 ]; then
2120 echo " opea/reranking built fail"
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ function build_docker_images() {
1515 -t opea/reranking:comps \
1616 --build-arg https_proxy=$https_proxy \
1717 --build-arg http_proxy=$http_proxy \
18- --build-arg SERVICE=videoqna \
1918 -f comps/rerankings/src/Dockerfile .
2019 if [ $? -ne 0 ]; then
2120 echo " opea/reranking built fail"
You can’t perform that action at this time.
0 commit comments