Skip to content

Commit 6103221

Browse files
committed
Use shallow clone for pyenv
Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent d769bf6 commit 6103221

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎Dockerfile‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ RUN apt-get update --quiet && \
2828
zlib1g && \
2929
rm -rf /var/lib/apt/lists/*
3030

31-
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash && \
32-
git clone https://github.com/momo-lab/xxenv-latest $PYENV_ROOT/plugins/xxenv-latest && \
33-
pyenv update
31+
RUN git clone --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT && \
32+
git clone --depth 1 https://github.com/momo-lab/xxenv-latest $PYENV_ROOT/plugins/xxenv-latest && \
33+
rm -rf $PYENV_ROOT/.git $PYENV_ROOT/plugins/xxenv-latest/.git
3434

3535
# ---
3636

@@ -50,12 +50,12 @@ RUN apt-get update --quiet && \
5050
zlib1g-dev && \
5151
rm -rf /var/lib/apt/lists/*
5252

53+
ENV PYTHON_CONFIGURE_OPTS="--disable-test-modules"
54+
5355
RUN pyenv install 3.11 && \
5456
pyenv install 3.12 && \
5557
pyenv install 3.13 && \
5658
pyenv install 3.14 && \
57-
pyenv global $(pyenv versions --bare | tac) && \
58-
pyenv versions && \
5959
find ${PYENV_ROOT}/versions -depth \
6060
\( \
6161
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \

0 commit comments

Comments
 (0)