Skip to content

Commit 54007d8

Browse files
authored
Build one docker image instead of mutiple different docker images (#1721)
Signed-off-by: Wang, Xigui <[email protected]>
1 parent 768e841 commit 54007d8

File tree

5 files changed

+1
-14
lines changed

5 files changed

+1
-14
lines changed

comps/rerankings/src/Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ FROM python:3.11-slim
66
ENV LANG=C.UTF-8
77

88
ARG ARCH="cpu"
9-
ARG SERVICE="all"
109

1110
RUN 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
2423
RUN 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

3829
COPY comps /home/user/comps

tests/rerankings/test_reranking_ovms.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

tests/rerankings/test_rerankings_tei.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

tests/rerankings/test_rerankings_tei_on_intel_hpu.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

tests/rerankings/test_rerankings_videoqna.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)