File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 14
14
- id : check-json
15
15
exclude : |
16
16
(?x)^(
17
- ChatQnA/svelte/tsconfig.json|
17
+ ChatQnA/ui/ svelte/tsconfig.json|
18
18
SearchQnA/ui/svelte/tsconfig.json|
19
- DocSum/svelte/tsconfig.json
19
+ DocSum/ui/ svelte/tsconfig.json
20
20
)$
21
21
- id : check-yaml
22
22
args : [--allow-multiple-documents]
Original file line number Diff line number Diff line change 3
3
4
4
FROM python:3.11-slim
5
5
6
- COPY GenAIComps /home/user/GenAIComps
7
-
8
6
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
9
7
libgl1-mesa-glx \
10
8
libjemalloc-dev \
@@ -14,11 +12,14 @@ RUN useradd -m -s /bin/bash user && \
14
12
mkdir -p /home/user && \
15
13
chown -R user /home/user/
16
14
15
+ WORKDIR /home/user/
16
+ RUN git clone https://github.com/opea-project/GenAIComps.git
17
+
17
18
WORKDIR /home/user/GenAIComps
18
19
RUN pip install --no-cache-dir --upgrade pip && \
19
20
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt
20
21
21
- COPY GenAIExamples/DocIndexRetriever /retrieval_tool.py /home/user/retrieval_tool.py
22
+ COPY . /retrieval_tool.py /home/user/retrieval_tool.py
22
23
23
24
ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps
24
25
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ services:
8
8
http_proxy : ${http_proxy}
9
9
https_proxy : ${https_proxy}
10
10
no_proxy : ${no_proxy}
11
+ context : ../
11
12
dockerfile : ./Dockerfile
12
13
image : ${REGISTRY:-opea}/doc-index-retriever:${TAG:-latest}
13
14
embedding-tei :
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ function build_docker_images() {
24
24
docker pull ghcr.io/huggingface/tgi-gaudi:latest
25
25
docker pull redis/redis-stack:7.2.0-v9
26
26
27
- cd $WORKPATH /../../
28
- docker build -t opea/doc-index-retriever:latest -f GenAIExamples/DocIndexRetriever /Dockerfile .
27
+ cd $WORKPATH /
28
+ docker build -t opea/doc-index-retriever:latest -f . /Dockerfile .
29
29
}
30
30
31
31
function start_services() {
@@ -47,7 +47,7 @@ function start_services() {
47
47
export RERANK_SERVICE_PORT=18000
48
48
49
49
# Start Docker Containers
50
- docker compose -f docker_compose.yaml up -d
50
+ docker compose up -d
51
51
sleep 20
52
52
}
53
53
You can’t perform that action at this time.
0 commit comments