forked from phoenix/litellm-mirror
Merge pull request #1076 from Manouchehri/public-fix-1
Use current Git folder for building Dockerfile
This commit is contained in:
commit
9660f0e0b1
2 changed files with 9 additions and 1 deletions
|
@ -15,9 +15,18 @@ RUN apt-get update && \
|
||||||
apt-get install -y gcc python3-dev && \
|
apt-get install -y gcc python3-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
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 the current directory contents into the container at /app
|
||||||
COPY requirements.txt .
|
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
|
# Install any needed packages specified in requirements.txt
|
||||||
RUN pip install wheel && \
|
RUN pip install wheel && \
|
||||||
pip wheel --no-cache-dir --wheel-dir=/app/wheels -r requirements.txt
|
pip wheel --no-cache-dir --wheel-dir=/app/wheels -r requirements.txt
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# LITELLM PROXY DEPENDENCIES #
|
# LITELLM PROXY DEPENDENCIES #
|
||||||
litellm
|
|
||||||
openai>=1.0.0
|
openai>=1.0.0
|
||||||
fastapi
|
fastapi
|
||||||
tomli
|
tomli
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue