Slightly more reproducible build and not as scary.

This commit is contained in:
Nicolas Patry 2025-02-13 18:11:05 +01:00
parent eb01342541
commit 57d6d13f68
No known key found for this signature in database
GPG Key ID: 4242CEF24CB6DBF9

View File

@ -62,7 +62,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
curl \
git && \
rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
COPY --from=ghcr.io/astral-sh/uv:0.5.31 /uv /uvx /bin/
ENV PATH="$PATH:/root/.local/bin"
RUN uv python install ${PYTHON_VERSION}
RUN uv venv --python ${PYTHON_VERSION} && uv pip install torch==${PYTORCH_VERSION} pip setuptools packaging