Skip to content

Commit 24edb85

Browse files
committed
Fix trivy issue in Dockerfile.
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent 799881a commit 24edb85

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

AvatarChatbot/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ COPY --from=git $HOME/GenAIComps/comps $HOME/GenAIComps/comps
3232
COPY --from=git $HOME/GenAIComps/*.* $HOME/GenAIComps/LICENSE $HOME/GenAIComps/
3333

3434
WORKDIR $HOME/GenAIComps
35-
RUN pip install --no-cache-dir --upgrade pip && \
35+
RUN pip install --no-cache-dir --upgrade pip setuptools && \
3636
pip install --no-cache-dir -r $HOME/GenAIComps/requirements.txt
3737
WORKDIR $HOME
3838

ChatQnA/tests/test_compose_on_gaudi.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2024 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44

5-
set -xe
5+
set -e
66
IMAGE_REPO=${IMAGE_REPO:-"opea"}
77
IMAGE_TAG=${IMAGE_TAG:-"latest"}
88
echo "REGISTRY=IMAGE_REPO=${IMAGE_REPO}"
@@ -47,7 +47,6 @@ function start_services() {
4747
export NUM_CARDS=1
4848
export INDEX_NAME="rag-redis"
4949
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
50-
export HF_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
5150
export host_ip=${ip_address}
5251
export JAEGER_IP=$(ip route get 8.8.8.8 | grep -oP 'src \K[^ ]+')
5352
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=grpc://$JAEGER_IP:4317

EdgeCraftRAG/Dockerfile.server

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ RUN mkdir -p /home/user/gradio_cache
3737
ENV GRADIO_TEMP_DIR=/home/user/gradio_cache
3838

3939
WORKDIR /home/user/edgecraftrag
40-
RUN pip install --no-cache-dir -r requirements.txt
40+
RUN pip install --no-cache-dir --upgrade pip setuptools && \
41+
pip install --no-cache-dir -r requirements.txt
4142

4243
WORKDIR /home/user/
4344

EdgeCraftRAG/ui/docker/Dockerfile.ui

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ RUN mkdir -p /home/user/gradio_cache
1515
ENV GRADIO_TEMP_DIR=/home/user/gradio_cache
1616

1717
WORKDIR /home/user/ui
18-
RUN pip install --no-cache-dir -r requirements.txt
18+
RUN pip install --no-cache-dir --upgrade pip setuptools && \
19+
pip install --no-cache-dir -r requirements.txt
1920

2021
USER user
2122

VideoQnA/ui/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y curl && \
99
rm -rf /var/lib/apt/lists/*
1010

1111

12-
RUN pip install --no-cache-dir --upgrade pip && \
12+
RUN pip install --no-cache-dir --upgrade pip setuptools && \
1313
pip install --no-cache-dir streamlit
1414

1515
COPY ui.py /app/ui.py

0 commit comments

Comments
 (0)