aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-10-03 19:16:55 +0100
committerGravatar Chris Lovering <[email protected]>2024-10-03 19:16:55 +0100
commitfdef8fdbabdc33bd8523e0540db464f0ffdb67d2 (patch)
treed5a157fc5bba8f19f82df3f9cd11b68ed469e45e
parentMerge 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--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index f2bbe2b..1054af6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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