Skip to content

Commit cd2ca5e

Browse files
committed
Fixes, it seems to be uv cache related
1 parent 6d10210 commit cd2ca5e

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

.github/workflows/docker.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ jobs:
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

@@ -70,14 +59,3 @@ jobs:
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

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ WORKDIR /vec-inf
5757
COPY . /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)
6365
RUN apt-get update && apt-get install -y --allow-change-held-packages\

0 commit comments

Comments
 (0)