diff --git a/Dockerfile b/Dockerfile index 217daccec..1a59db16a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/requirements.txt b/requirements.txt index bc849a325..986580d7a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ # LITELLM PROXY DEPENDENCIES # -litellm openai>=1.0.0 fastapi tomli