File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1562,10 +1562,8 @@ def change_default_python_version_rhel(version):
15621562# installed within the container will not be picked up by the python backend stub process pybind
15631563# bindings. It must instead must be installed via pyenv.
15641564RUN curl https://pyenv.run | bash
1565- RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc \\
1566- && echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc \\
1567- && echo 'eval "$(pyenv init -)"' >> ~/.bashrc \\
1568- && source ~/.bashrc
1565+ ENV PATH="/root/.pyenv/bin:$PATH"
1566+ RUN eval "$(pyenv init -)"
15691567RUN CONFIGURE_OPTS=\" --with-openssl=/usr/lib64\" && pyenv install {} \\
15701568 && cp /root/.pyenv/versions/{}/lib/libpython3* /usr/lib64/""" .format (
15711569 version , version
You can’t perform that action at this time.
0 commit comments