Skip to content

Commit

Permalink
Fix dockerfile (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeq authored Nov 2, 2023
1 parent d48d175 commit 0ec3718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit 0ec3718

Please sign in to comment.