forked from phoenix/litellm-mirror
Fix Dockerfile.
This commit is contained in:
parent
abe1662eef
commit
2d8cebd408
1 changed files with 9 additions and 0 deletions
|
@ -12,9 +12,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 . /app
|
||||
|
||||
# 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 wheel --no-cache-dir --wheel-dir=wheels -r requirements.txt
|
||||
RUN pip install --no-cache-dir --find-links=wheels -r requirements.txt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue