mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
16 lines
345 B
Docker
16 lines
345 B
Docker
FROM python:3.10
|
|
|
|
# Define a build argument for the config file path
|
|
ARG CONFIG_FILE
|
|
|
|
# Copy the custom config file (if provided) into the Docker image
|
|
COPY $CONFIG_FILE /app/config.yaml
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN pip install -r requirements.txt
|
|
|
|
WORKDIR /app/openai_proxy
|
|
EXPOSE $PORT
|
|
|
|
CMD exec uvicorn main:app --host 0.0.0.0 --port $PORT
|