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

View file

@ -1,8 +1,8 @@
FROM python:3.10 FROM python:3.10
ENV LITELLM_CONFIG_PATH="/litellm.secrets.toml"
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
RUN mkdir -p /root/.config/litellm/ && cp /app/secrets_template.toml /root/.config/litellm/litellm.secrets.toml
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
WORKDIR /app/litellm/proxy WORKDIR /app/litellm/proxy