forked from phoenix/litellm-mirror
Reduce Docker size by not copying unneeded files.
This commit is contained in:
parent
ecdb7a59e3
commit
f7ad15c392
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,16 +1,19 @@
|
|||
# Base image
|
||||
FROM python:3.9-slim
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the project files to the working directory
|
||||
COPY . /app
|
||||
COPY litellm /app/litellm
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app/litellm
|
||||
|
||||
# Install the project dependencies
|
||||
COPY requirements.txt /app/litellm/requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
WORKDIR /app/litellm/proxy
|
||||
|
||||
COPY hosted_config.yaml /app/hosted_config.yaml
|
||||
|
||||
# Set the command to run when the container starts
|
||||
CMD python3 proxy_cli.py --config /app/hosted_config.yaml --port 4000
|
Loading…
Add table
Add a link
Reference in a new issue