diff --git a/Dockerfile.rocm b/Dockerfile.rocm index 46706c6..bfd49f0 100644 --- a/Dockerfile.rocm +++ b/Dockerfile.rocm @@ -17,8 +17,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app -# Install uv so packages that use uv-build as their build backend can be built. -RUN pip3 install uv +# Install uv and expose its bundled binary so pip isolated build environments +# can find it when building packages that use uv-build (e.g. resemble-perth). +RUN pip3 install uv && \ + ln -sf "$(python3 -c 'import uv; print(uv.find_uv_bin())')" /usr/local/bin/uv # Step 1: Install ROCm-compatible PyTorch stack first. # This must happen before anything else to prevent pip from pulling CPU wheels.