File tree Expand file tree Collapse file tree 2 files changed +3
-23
lines changed
Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Original file line number Diff line number Diff line change 3434 VERSION=$(grep -A 1 'name = "vllm"' uv.lock | grep version | cut -d '"' -f 2)
3535 echo "version=$VERSION" >> $GITHUB_OUTPUT
3636
37- - name : Free up disk space
38- run : |
39- echo "Disk space before cleanup:"
40- df -h
41- # Remove Docker cache and unused images
42- docker system prune -af --volumes || true
43- # Clean buildx cache
44- docker buildx prune -af || true
45- echo "Disk space after cleanup:"
46- df -h
47-
4837 - name : Set up Docker Buildx
4938 uses : docker/setup-buildx-action@v3
5039
7059 ${{ steps.meta.outputs.tags }}
7160 vectorinstitute/vector-inference:${{ steps.vllm-version.outputs.version }}
7261 labels : ${{ steps.meta.outputs.labels }}
73- cache-from : type=registry,ref=vectorinstitute/vector-inference:buildcache
74- cache-to : type=registry,ref=vectorinstitute/vector-inference:buildcache,mode=min
75-
76- - name : Clean up after build
77- if : always()
78- run : |
79- echo "Cleaning up build artifacts..."
80- docker system prune -af || true
81- docker buildx prune -af || true
82- echo "Final disk space:"
83- df -h
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ WORKDIR /vec-inf
5757COPY . /vec-inf
5858
5959# Install project dependencies with build requirements
60- RUN uv pip install --system -e .[dev] --prerelease=allow
60+ # Use --no-cache to prevent uv from storing both downloaded and extracted packages
61+ RUN uv pip install --system -e .[dev] --prerelease=allow --no-cache && \
62+ rm -rf /root/.cache/uv /tmp/*
6163
6264# Install a single, system NCCL (from NVIDIA CUDA repo in base image)
6365RUN apt-get update && apt-get install -y --allow-change-held-packages\
You can’t perform that action at this time.
0 commit comments