deploy : current attempt at backend dockerization

This commit is contained in:
martin legrand
2025-05-25 21:19:18 +02:00
parent 6d053cc3a5
commit 16b8f1a451
10 changed files with 170 additions and 35 deletions
+9
View File
@@ -22,6 +22,10 @@ from sources.utility import pretty_print
from sources.logger import Logger
from sources.schemas import QueryRequest, QueryResponse
from dotenv import load_dotenv
load_dotenv()
from celery import Celery
@@ -247,4 +251,9 @@ async def process_query(request: QueryRequest):
interaction.save_session()
if __name__ == "__main__":
envport = os.getenv("BACKEND_PORT")
if envport:
port = int(envport)
else:
port = 8000
uvicorn.run(api, host="0.0.0.0", port=8000)