diff options
| author | 2024-10-03 19:16:55 +0100 | |
|---|---|---|
| committer | 2024-10-03 19:16:55 +0100 | |
| commit | fdef8fdbabdc33bd8523e0540db464f0ffdb67d2 (patch) | |
| tree | d5a157fc5bba8f19f82df3f9cd11b68ed469e45e | |
| parent | Merge pull request #216 from python-discord/bump-versions (diff) | |
Move pyenv clone to builder-py-base image
This means when building multiple python versions this repo is only cloned once
| -rw-r--r-- | Dockerfile | 5 | 
1 files changed, 3 insertions, 2 deletions
| @@ -29,12 +29,13 @@ RUN apt-get -y update \          tk-dev \      && rm -rf /var/lib/apt/lists/* +RUN git clone -b v2.4.10 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT +  COPY --link scripts/build_python.sh /  # ------------------------------------------------------------------------------  FROM builder-py-base as builder-py-3_12 -RUN git clone -b v2.4.10 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT \ -    && /build_python.sh 3.12.5 +RUN /build_python.sh 3.12.5  # ------------------------------------------------------------------------------  FROM python:3.12-slim-bookworm as base | 
