Merge pull request #1076 from Manouchehri/public-fix-1

Use current Git folder for building Dockerfile
This commit is contained in:
Krish Dholakia 2023-12-16 12:28:09 -08:00 committed by GitHub
commit 9660f0e0b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -15,9 +15,18 @@ RUN apt-get update && \
apt-get install -y gcc python3-dev && \
rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip && \
pip install build
# Copy the current directory contents into the container at /app
COPY requirements.txt .
# Build the package
RUN rm -rf dist/* && python -m build
# Install the package
RUN pip install dist/*.whl
# Install any needed packages specified in requirements.txt
RUN pip install wheel && \
pip wheel --no-cache-dir --wheel-dir=/app/wheels -r requirements.txt

View file

@ -1,5 +1,4 @@
# LITELLM PROXY DEPENDENCIES #
litellm
openai>=1.0.0
fastapi
tomli