File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,16 @@ RUN bash ./setup_18.x && $APT_INSTALL make build-essential net-tools apt-utils l
2424# pyenv install python
2525ENV PYENV_ROOT=/shared/.pyenv
2626ENV PYTHONUSERBASE="$PYENV_ROOT/versions/$PYTHON_VERSION"
27- ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PYENV_ROOT/versions/' $PYTHON_VERSION' /bin:$PATH
27+ ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PYENV_ROOT/versions/$PYTHON_VERSION/bin:$PATH
2828
2929RUN echo '# pyenv setup' > /etc/profile.d/pyenv.sh
30- RUN echo 'export PYENV_ROOT=/shared/.pyenv ' >> /etc/profile.d/pyenv.sh
31- RUN echo 'export PYTHONUSERBASE="$PYENV_ROOT/versions/$PYTHON_VERSION "' >> /etc/profile.d/pyenv.sh
32- RUN echo 'export PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PYENV_ROOT/versions/' $PYTHON_VERSION' /bin:$PATH' >> /etc/profile.d/pyenv.sh
30+ RUN echo 'export PYENV_ROOT="' $PYENV_ROOT '" ' >> /etc/profile.d/pyenv.sh
31+ RUN echo 'export PYTHONUSERBASE="' $PYTHONUSERBASE ' "' >> /etc/profile.d/pyenv.sh
32+ RUN echo 'export PATH="' $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PYENV_ROOT/versions/$PYTHON_VERSION/bin' :$PATH" ' >> /etc/profile.d/pyenv.sh
3333RUN echo 'eval "$(pyenv init -)"' >> /etc/profile.d/pyenv.sh
3434RUN chmod +x /etc/profile.d/pyenv.sh
3535RUN chmod +x ./pyenv.run && \
36+ source /etc/profile.d/pyenv.sh && \
3637 ./pyenv.run && pyenv update && pyenv install $PYTHON_VERSION && pyenv global $PYTHON_VERSION && pyenv rehash && \
3738 update-alternatives --install /usr/bin/python python $PYENV_ROOT/shims/python3 0 && \
3839 update-alternatives --install /usr/bin/python3 python3 $PYENV_ROOT/shims/python3 0 && \
You can’t perform that action at this time.
0 commit comments