From c41d6e13f6a21faf42453c41679609a12c741175 Mon Sep 17 00:00:00 2001 From: Emil Hamrin Date: Fri, 5 Sep 2025 22:16:26 +0200 Subject: [PATCH] Install python using uv --- docs/docker/Dockerfile | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/docs/docker/Dockerfile b/docs/docker/Dockerfile index 4f072fb07..af70b18ca 100644 --- a/docs/docker/Dockerfile +++ b/docs/docker/Dockerfile @@ -43,23 +43,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libice6 \ && rm -rf /var/lib/apt/lists/* -# Install pyenv -ENV PYENV_ROOT=/root/.pyenv -ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH" - -RUN curl https://pyenv.run | bash && \ - pyenv install ${PYTHON_VERSION} && \ - pyenv global ${PYTHON_VERSION} && \ - python3 -m ensurepip && \ - python3 -m pip install --upgrade pip - # install rust with rustup RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" -# Install uv -RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \ - ln -s /root/.local/bin/uv /usr/local/bin/uv +# Install uv and Python 3.9 with uv +RUN curl -LsSf https://astral.sh/uv/install.sh | sh \ + && ln -s /root/.local/bin/uv /usr/local/bin/uv +ENV PATH="/root/.local/bin:${PATH}" + +RUN uv python install ${PYTHON_MINOR} --default COPY . .