This repository contains the Docker setup for the AI Agent App. To run the app, follow the steps below:
- Docker installed on your local machine
- .env file with the required environment variables
Create a .env file in the same directory as the Dockerfile and docker-compose.yml file. Add the following environment variables to the .env file:
OPENAI_API_KEY=<your_openai_api_key>
PINECONE_API_KEY=<your_pinecone_api_key>
Replace <your_openai_api_key>
and <your_pinecone_api_key>
with your actual API keys.
- Make sure you have the
build.sh
script in the same directory as the Dockerfile and docker-compose.yml file. - Make the script executable:
chmod +x build.sh
- Run the
build.sh
script:
./build.sh
This will build the Docker image using the Dockerfile and the environment variables from the .env file.
- Run the following command to start the Docker container:
docker-compose up -d
- Access the Streamlit app by navigating to
http://localhost:8081
in your web browser.
To stop the Docker container, run the following command:
docker-compose down
That's it! You have successfully set up and run the AI Agent App using Docker. Make sure to protect the .env file and never commit it to version control systems.