diff --git a/docker/Dockerfile.slim b/docker/Dockerfile.slim index f82c86aee97ab13d9fd8c04bb692a0ab3fb8faaf..182c0cb00ef2b7495b95753f70550f0db38eaa5b 100644 --- a/docker/Dockerfile.slim +++ b/docker/Dockerfile.slim @@ -19,12 +19,13 @@ RUN apt-get install --assume-yes --no-install-recommends --option=debug::pkgProb curl # Install uv -RUN curl -LsSf https://astral.sh/uv/install.sh | sh -ENV PATH="/root/.local/bin:${PATH}" +COPY --from=ghcr.io/astral-sh/uv:0.8.4 /uv /uvx /bin/ +ENV UV_PYTHON_INSTALL_DIR="/opt/python" # Set up a global Python virtual environment -RUN uv venv "/root/.venv" -ENV PATH="/root/.venv/bin:${PATH}" +RUN uv venv "/opt/python-venv" +ENV VIRTUAL_ENV="/opt/python-venv" +ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" # We now install packages required by all the FW components that Shrinkwrap # supports building. Often there are overlapping components, but we (re)specify