Skip to content

Commit

Permalink
Adding celery config and other reqs that were missing from to do know…
Browse files Browse the repository at this point in the history
…ledge retrieval
  • Loading branch information
sanjay920 committed Feb 12, 2024
1 parent 12d86ca commit 8362cb9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/backend/api_server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim-buster
FROM python:3.10.7-slim

# Set the working directory in the container to /app
WORKDIR /app
Expand All @@ -8,6 +8,9 @@ ADD . /app

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN spacy download en_core_web_sm
RUN playwright install
RUN playwright install-deps

# Make port 80 available to the world outside this container
EXPOSE 8000
Expand Down
6 changes: 6 additions & 0 deletions services/backend/api_server/app/celery_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os

CELERY_REDIS_HOST = os.getenv("REDIS_HOST", "localhost")
BROKER_URL = f'redis://{CELERY_REDIS_HOST}:6379/0' # Redis configuration
CELERY_RESULT_BACKEND = f'redis://{CELERY_REDIS_HOST}:6379/0'
CELERY_IMPORTS = ("app.tasks", )
4 changes: 4 additions & 0 deletions services/backend/api_server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ websockets==12.0
requests==2.31.0
googlesearch-python==1.2.3
langchain==0.0.351
spacy==3.7.2
markdownify==0.11.6
playwright==1.39.0
tiktoken==0.5.2

0 comments on commit 8362cb9

Please sign in to comment.