build: Adds dockerfile for easily building proxy

This commit is contained in:
Krrish Dholakia 2023-10-16 15:09:22 -07:00
parent ad202a30da
commit 81373f0678
7 changed files with 26 additions and 0 deletions

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM python:3.10
RUN pip install poetry
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
WORKDIR /app/litellm/proxy
RUN python proxy_cli.py --config -f /app/secrets_template.toml
RUN python proxy_cli.py

2
litellm/proxy/start.sh Executable file
View file

@ -0,0 +1,2 @@
python3 proxy_cli.py --config -f ../../secrets_template.toml &
python3 proxy_cli.py

9
requirements.txt Normal file
View file

@ -0,0 +1,9 @@
openai
python-dotenv
tiktoken
importlib-metadata
tokenizers
click
jinja2
certifi
appdirs