Skip to content

Commit 4e1bf59

Browse files
committed
Dockerfile base: small fix
1 parent 3e53db6 commit 4e1bf59

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Dockerfile.base

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
44
ENV PYTHON_CONFIGURE_OPTS="--enable-shared"
55
ENV PYENV_ROOT="/opt/pyenv"
66
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
7+
ENV PYTHON_VERSION=3.13.0
78

89
# Install system dependencies for pyenv and Python builds
910
RUN apt-get update && apt-get install -yqq \
@@ -39,14 +40,19 @@ RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT && \
3940
cd $PYENV_ROOT && \
4041
git checkout $(git describe --tags --abbrev=0)
4142

43+
# Set up bash profile for pyenv
44+
RUN echo 'export PYENV_ROOT="/opt/pyenv"' >> /root/.bashrc && \
45+
echo 'export PATH="${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:$PATH"' >> /root/.bashrc && \
46+
echo 'eval "$(pyenv init -)"' >> /root/.bashrc && \
47+
echo 'eval "$(pyenv init --path)"' >> /root/.bashrc && \
48+
echo 'alias python=python3' >> /root/.bashrc
49+
4250
# Install Python versions with pyenv
4351
RUN pyenv install 3.10.13 && \
4452
pyenv install 3.11.9 && \
4553
pyenv install 3.12.4 && \
4654
pyenv install 3.13.0
4755

48-
ENV PYTHON_VERSION=3.13.0
49-
5056
# Upgrade pip for each Python version
5157
RUN for pyver in 3.10.13 3.11.9 3.12.4 3.13.0; do \
5258
echo "Upgrading pip for Python $pyver..." && \
@@ -57,12 +63,7 @@ RUN for pyver in 3.10.13 3.11.9 3.12.4 3.13.0; do \
5763
done
5864

5965
# Build and install Vim from source with Python support for each Python version
60-
RUN export PYENV_ROOT="/opt/pyenv" && \
61-
export PATH="${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:${PATH}" && \
62-
eval "$(pyenv init -)" && \
63-
eval "$(pyenv init --path)" && \
64-
export PYTHON_CONFIGURE_OPTS="--enable-shared" && \
65-
cd /tmp && \
66+
RUN cd /tmp && \
6667
git clone https://github.com/vim/vim.git && \
6768
cd vim && \
6869
# Build Vim for each Python version

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy