Move Dockerfile to root and set environment variable for config path

This commit is contained in:
coconut49 2023-10-18 13:34:00 +08:00
parent 52fdfe5819
commit be78f2ade9
No known key found for this signature in database

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM python:3.10
ENV LITELLM_CONFIG_PATH="/litellm.secrets.toml"
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
WORKDIR /app/litellm/proxy
EXPOSE 8000
ENTRYPOINT [ "python3", "proxy_cli.py" ]
# TODO - Set up a GitHub Action to automatically create the Docker image,
# and then we can quickly deploy the litellm proxy in the following way
# `docker run -p 8000:8000 -v ./secrets_template.toml:/root/.config/litellm/litellm.secrets.toml ghcr.io/BerriAI/litellm:v0.8.4`