diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..19ab549 --- /dev/null +++ b/Dockerfile @@ -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"] + diff --git a/README.md b/README.md index 2930a68..bc60c3f 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3dec3b8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' + +services: + funckycall: + build: . + ports: + - 8000:8000 + env_file: + - ./.env + diff --git a/example.env b/example.env new file mode 100644 index 0000000..1d6b150 --- /dev/null +++ b/example.env @@ -0,0 +1 @@ +export GROQ_API_KEY=YOUR_GROQ_KEY