From 0ec37187c3128ec2d232dfc7210cc01611bb85e9 Mon Sep 17 00:00:00 2001 From: Federico Quattrocchio Date: Thu, 2 Nov 2023 14:20:13 -0300 Subject: [PATCH] Fix dockerfile (#155) --- Dockerfile | 2 +- src/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ca0b107..4d81ea0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,6 @@ RUN pip install --no-cache-dir -r requirements.txt -r semantic_search_requiremen COPY ./src ./src -CMD exec uvicorn index:api --host 0.0.0.0 --port $PORT --workers 2 --timeout-keep-alive 600 +CMD exec uvicorn index:api --host 0.0.0.0 --port $PORT --workers 2 --timeout-keep-alive 600 --app-dir /app/src EXPOSE 8080 diff --git a/src/index.py b/src/index.py index f60d71d..cb21e2e 100644 --- a/src/index.py +++ b/src/index.py @@ -41,4 +41,4 @@ async def test_smart_query(req: SmartQueryRequest): # Running the application with Uvicorn if __name__ == "__main__": import uvicorn - uvicorn.run(api, host="0.0.0.0", port=int(os.environ.get("PORT", 8000))) + uvicorn.run(api, host="0.0.0.0", port=int(os.environ.get("PORT", 8080)))