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 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**