Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an initial Docker Setup #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.11


# Set working directory to /app
WORKDIR /app

ADD ./app /app/app
ADD ./requirements.txt /app/requirements.txt

RUN pip install --no-cache-dir -r requirements.txt

RUN mkdir .logs
ADD ./frontend /app/frontend

CMD ["uvicorn", "--app-dir", "app/", "--host", "0.0.0.0", "--port", "8000", "main:app"]

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@ To run this proxy locally on your own machine, follow these steps:
6. Run the FastAPI server:
```uvicorn --app-dir app/ main:app --reload```

## Docker Compose 🐳
You can also run the proxy with the provided docker-compose.yml

1. Clone the GitHub repository:
```git clone https://github.com/unclecode/funckycall.git```

2. Navigate to the project directory:
```cd funckycall```

3. Create a new .env file:
```cp example.env .env```

4. Update the new `.env` to use your Groq API token:
```export GROQ_API_KEY=your-api-key```

5. Run docker compose :
```docker compose up```

## Using the Pre-built Server 🌐
For your convenience, I have already set up a server that you can use temporarily. This allows you to quickly start using the proxy without having to run it locally.
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
funckycall:
build: .
ports:
- 8000:8000
env_file:
- ./.env

1 change: 1 addition & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export GROQ_API_KEY=YOUR_GROQ_KEY