File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -106,21 +106,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
106106# ## PYTHON ###
107107
108108ARG PYENV_VERSION=v2.5.5
109- ARG PYTHON_VERSION= 3.11.12
109+ ENV PYTHON_VERSIONS= " 3.11.12 3.10 3.12 3.13"
110110
111111# Install pyenv
112112ENV PYENV_ROOT=/root/.pyenv
113113ENV PATH=$PYENV_ROOT/bin:$PATH
114- ENV PYTHON_VERSIONS="3.10 3.11.12 3.12 3.13"
115114RUN git -c advice.detachedHead=0 clone --branch "$PYENV_VERSION" --depth 1 https://github.com/pyenv/pyenv.git "$PYENV_ROOT" \
116115 && echo 'export PYENV_ROOT="$HOME/.pyenv"' >> /etc/profile \
117116 && echo 'export PATH="$$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"' >> /etc/profile \
118117 && echo 'eval "$(pyenv init - bash)"' >> /etc/profile \
119118 && cd "$PYENV_ROOT" \
120119 && src/configure \
121120 && make -C src \
122- && pyenv install " $PYTHON_VERSIONS" \
123- && pyenv global "$PYTHON_VERSION " \
121+ && pyenv install $PYTHON_VERSIONS \
122+ && pyenv global "{PYTHON_VERSIONS%% *} " \
124123 && rm -rf "$PYENV_ROOT/cache"
125124
126125# Install pipx for common global package managers (e.g. poetry)
You can’t perform that action at this time.
0 commit comments