From b4bf65d90e56c00b265f917f5c695563235fb636 Mon Sep 17 00:00:00 2001 From: armandobelardo Date: Sat, 24 Feb 2024 15:53:18 -0500 Subject: [PATCH] the previous workaround actually worked --- docker/seed/Dockerfile.python | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/seed/Dockerfile.python b/docker/seed/Dockerfile.python index 54f1c4b468b..95c37d21ba9 100644 --- a/docker/seed/Dockerfile.python +++ b/docker/seed/Dockerfile.python @@ -10,13 +10,19 @@ COPY seed/python-sdk/imdb/src ./src RUN yum update -y 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