From 8f7a31a6b5f7a7afa4d907f40721a700bdbb3998 Mon Sep 17 00:00:00 2001 From: Tobias Klein Date: Sat, 28 Oct 2023 11:02:20 +0200 Subject: [PATCH] Install Python 3.10 in context of build --- docker/Debian12_Bookworm_Dockerfile | 7 ------- docker/build_debian12_bookworm.sh | 5 +++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/docker/Debian12_Bookworm_Dockerfile b/docker/Debian12_Bookworm_Dockerfile index 7592a79..95c15da 100644 --- a/docker/Debian12_Bookworm_Dockerfile +++ b/docker/Debian12_Bookworm_Dockerfile @@ -12,13 +12,6 @@ RUN apt-get install -y libssl-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev -# Install pyenv -RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash - -# Install Python 3.10.0 -RUN /root/.pyenv/bin/pyenv install 3.10.0 -RUN /root/.pyenv/bin/pyenv global 3.10.0 - RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - RUN apt-get update RUN apt-get install -y nodejs npm diff --git a/docker/build_debian12_bookworm.sh b/docker/build_debian12_bookworm.sh index 6d61c92..0112b0d 100755 --- a/docker/build_debian12_bookworm.sh +++ b/docker/build_debian12_bookworm.sh @@ -3,8 +3,9 @@ # Use Python 3.10.0, because with 3.11 there are issues with node-gyp # See https://stackoverflow.com/questions/74715990/node-gyp-err-invalid-mode-ru-while-trying-to-load-binding-gyp -export PATH=$PATH:/root/.pyenv/bin -pyenv versions +curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash +export PATH=$PATH:$HOME/.pyenv/bin +pyenv install 3.10.0 pyenv global 3.10.0 npm run build-linux