From 66d8631e9b35dc6dd8f7ff22eee4fc19b44d7acd Mon Sep 17 00:00:00 2001 From: Tongze Wang Date: Sun, 8 Sep 2024 09:43:35 -0700 Subject: [PATCH] feat: pyenv --- base.Dockerfile => base.dockerfile | 2 +- pyenv.dockerfile | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) rename base.Dockerfile => base.dockerfile (95%) create mode 100644 pyenv.dockerfile diff --git a/base.Dockerfile b/base.dockerfile similarity index 95% rename from base.Dockerfile rename to base.dockerfile index 010c4c2..4893ba4 100644 --- a/base.Dockerfile +++ b/base.dockerfile @@ -16,7 +16,7 @@ RUN rm -rf library/src/blas3/Tensile/Logic/asm_full/r9nano/ # gfx803 as single target will cause error RUN sed -i -e 's/rmake.py --install/rmake.py -a="gfx803;gfx900" --install/g' install.sh -RUN ./install.sh -id --cmake_install +RUN ./install.sh -d --cmake_install WORKDIR /root ## need to fix broken version diff --git a/pyenv.dockerfile b/pyenv.dockerfile new file mode 100644 index 0000000..890cc5e --- /dev/null +++ b/pyenv.dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:22.04 +ARG PYTHON_VERSION="3.11.6" +ARG DEBIAN_FRONTEND="noninteractive" +RUN apt-get update && \ +apt install -y build-essential libssl-dev zlib1g-dev \ +libbz2-dev libreadline-dev libsqlite3-dev curl git \ +libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \ +&& rm -rf /var/lib/apt/lists/* +WORKDIR /root +RUN curl https://pyenv.run | bash +ENV PYENV_ROOT=/root/.pyenv +ENV PATH=$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH +RUN pyenv install ${PYTHON_VERSION} +RUN pyenv global ${PYTHON_VERSION} +CMD [ "/bin/bash" ]