Skip to content

Commit 4447634

Browse files
profotoce59loiclu7romainVanhee
authored
Fix/vector store job (#16)
* fix(vector-store-job): the vector store scripts was not able to access the reload_page python script --------- Co-authored-by: loiclu7 <loic.lu7@gmail.com> Co-authored-by: Romain Vanhee <romain.vanhee@yrycom.com>
1 parent 4c31de5 commit 4447634

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile.api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ COPY requirements.txt /app/requirements.txt
99
RUN pip install --no-cache-dir -r /app/requirements.txt
1010

1111
COPY app /app/app
12+
COPY vector_store.py /app/vector_store.py
13+
COPY export_pages.py /app/export_pages.py
1214
RUN mkdir -p /app/vector-store
1315

1416
EXPOSE 8000

reload_job.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ cd "$PROJECT_DIR"
1616

1717
echo "[reindex] starting export + vector store reload"
1818
docker compose -f "$COMPOSE_FILE" run --rm --no-deps --build \
19-
-v "$PROJECT_DIR:/work" \
20-
-w /work \
2119
chatbot-api \
2220
sh -lc "python export_pages.py && python vector_store.py"
2321
echo "[reindex] done"

0 commit comments

Comments
 (0)