Merge pull request #882 from Manouchehri/docker-cleanup-1

Improve Dockerfile
This commit is contained in:
Krish Dholakia 2023-11-23 10:38:45 -08:00 committed by GitHub
commit 2fb94b4cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,16 +1,21 @@
# 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
EXPOSE 4000/tcp
# Set the command to run when the container starts
CMD python3 proxy_cli.py --config /app/hosted_config.yaml --port 4000