Skip to content

Commit

Permalink
try this workaround from github
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed Feb 24, 2024
1 parent 31c9b64 commit 90b247a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/seed/Dockerfile.python
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ ENV PYENV_ROOT="${HOME}/.pyenv"
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN eval "$(pyenv init --path)"

RUN pyenv install 3.9
# Save so we can revert
RUN OLD_PATH="$PATH"
# Remove linuxbrew from the path
RUN export PATH="$(echo $PATH | tr : '\n' | grep -v linuxbrew | paste -s -d:)"
# Install Python
RUN pyenv install 3.8
RUN pyenv install 3.9
# revert path
RUN export PATH=$OLD_PATH

RUN pyenv global 3.8

0 comments on commit 90b247a

Please sign in to comment.