Skip to content

Commit

Permalink
try this other workaround from github
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed Feb 24, 2024
1 parent 90b247a commit 55b5c24
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docker/seed/Dockerfile.python
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ COPY seed/python-sdk/imdb/src ./src

# Setup pyenv
RUN yum update -y
RUN yum -y install git gcc zlib-devel openssl-devel xz-devel bzip2-devel libffi-devel ncurses-devel sqlite-devel readline
RUN yum upgrade -y
RUN yum -y install make git gcc zlib-devel openssl-devel xz-devel bzip2-devel libffi-devel ncurses-devel sqlite-devel readline
RUN yum -y --skip-broken install wget curl llvm libxml2-devel libffi-devel
RUN git clone --depth=1 https://github.com/pyenv/pyenv.git .pyenv
ENV PYENV_ROOT="${HOME}/.pyenv"
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN eval "$(pyenv init --path)"

# 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 55b5c24

Please sign in to comment.