From 3de90a2891f7e106c5316084ab4d2af567338c82 Mon Sep 17 00:00:00 2001 From: Sudarshan Koirala Date: Mon, 27 Nov 2023 12:51:47 +0000 Subject: [PATCH 1/2] replaced dist with src as it is not present --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 526ebb56d..350d870e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,6 @@ RUN rm poetry.lock RUN pip install . -COPY ./frontend/dist ./ui +COPY ./frontend/src ./ui CMD exec uvicorn app.server:app --host 0.0.0.0 --port $PORT From 9ab23043817e2bad7b7b3d15c61a34905cb16859 Mon Sep 17 00:00:00 2001 From: Sudarshan Koirala Date: Mon, 27 Nov 2023 12:52:15 +0000 Subject: [PATCH 2/2] readme file updated on how to run the app using docker-compose --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 1e4856ae1..f9f574960 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,31 @@ Searches [PubMed](https://pubmed.ncbi.nlm.nih.gov/). Does not require any API ke Searches [Wikipedia](https://pypi.org/project/wikipedia/). Does not require any API keys. +## Docker Setup + +Make sure you have installed [Docker Desktop](https://www.docker.com/products/docker-desktop/). Once installed, open the docker desktop. + +Make sure to paste the `OPENAI_API_KEY` in the `.env` file. If you don't want to use the actual api key for tavily and ydc and get error related to ydc and tavily, just paste the following in the .env file. + +``` +TAVILY_API_KEY=your_secret_here +YDC_API_KEY=your_secret_here +``` + +Once you open the docker desktop and environment varialbes pasted, run the following commands from the root directory where `docker-compose.yml` is. + +``` +docker-compose --env-file .env up +``` + +Navigate to http://localhost:8100/ and enjoy! + +Once done, run the following command to stop the app. + +``` +docker-compose down +``` + ## Deployment **1. Build the frontend**