feat: pyenv
This commit is contained in:
@@ -16,7 +16,7 @@ RUN rm -rf library/src/blas3/Tensile/Logic/asm_full/r9nano/
|
|||||||
# gfx803 as single target will cause error
|
# 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 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
|
WORKDIR /root
|
||||||
|
|
||||||
## need to fix broken version
|
## need to fix broken version
|
||||||
@@ -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" ]
|
||||||
Reference in New Issue
Block a user