https://github.com/jaybfn/ai-agent
https://github.com/jaybfn/ai-agent
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jaybfn/ai-agent
- Owner: jaybfn
- License: mit
- Created: 2023-10-05T07:44:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T21:35:03.000Z (over 2 years ago)
- Last Synced: 2025-02-23T22:25:53.634Z (over 1 year ago)
- Language: Python
- Size: 4.44 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Agent App - Docker Setup Guide
This repository contains the Docker setup for the AI Agent App. To run the app, follow the steps below:
## Prerequisites
- Docker installed on your local machine
- .env file with the required environment variables
## Creating a .env file
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=
PINECONE_API_KEY=
```
Replace `` and `` with your actual API keys.
## Building the Docker Image
1. Make sure you have the `build.sh` script in the same directory as the Dockerfile and docker-compose.yml file.
2. Make the script executable:
```bash
chmod +x build.sh
```
3. Run the `build.sh` script:
```bash
./build.sh
```
This will build the Docker image using the Dockerfile and the environment variables from the .env file.
## Running the Docker Container
1. Run the following command to start the Docker container:
```bash
docker-compose up -d
```
2. Access the Streamlit app by navigating to `http://localhost:8081` in your web browser.
## Stopping the Docker Container
To stop the Docker container, run the following command:
```bash
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.