Skip to content

Commit

Permalink
Rename script to build for consistency
Browse files Browse the repository at this point in the history
All our other helper build scripts are simply called `build`. So now
that this is the only python build script, we no longer need to
disambiguate it from the other build script... so let's also rename it
to just `build` for consistency with the other ecosystems.

Split out as a separate commit from the prior one in order to make the
`git` trail easier to follow.
  • Loading branch information
jeffwidman committed Jul 22, 2023
1 parent f96e0fe commit 1665b0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,25 @@ RUN git -c advice.detachedHead=false clone https://github.com/pyenv/pyenv.git --

FROM python-core as python-3.10
RUN pyenv install $PY_3_10 \
&& bash /opt/python/helpers/build_for_version $PY_3_10 \
&& bash /opt/python/helpers/build $PY_3_10 \
&& cd /usr/local/.pyenv \
&& tar czf 3.10.tar.gz versions/$PY_3_10

FROM python-core as python-3.9
RUN pyenv install $PY_3_9 \
&& bash /opt/python/helpers/build_for_version $PY_3_9 \
&& bash /opt/python/helpers/build $PY_3_9 \
&& cd /usr/local/.pyenv \
&& tar czf 3.9.tar.gz versions/$PY_3_9

FROM python-core as python-3.8
RUN pyenv install $PY_3_8 \
&& bash /opt/python/helpers/build_for_version $PY_3_8 \
&& bash /opt/python/helpers/build $PY_3_8 \
&& cd /usr/local/.pyenv \
&& tar czf 3.8.tar.gz versions/$PY_3_8

FROM python-core as python-3.7
RUN pyenv install $PY_3_7 \
&& bash /opt/python/helpers/build_for_version $PY_3_7 \
&& bash /opt/python/helpers/build $PY_3_7 \
&& cd /usr/local/.pyenv \
&& tar czf 3.7.tar.gz versions/$PY_3_7

Expand Down Expand Up @@ -125,7 +125,7 @@ ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt"
RUN git -c advice.detachedHead=false clone https://github.com/pyenv/pyenv.git --branch $PYENV_VERSION --single-branch --depth=1 /usr/local/.pyenv
RUN pyenv install $PY_3_11 \
&& pyenv global $PY_3_11 \
&& bash /opt/python/helpers/build_for_version $PY_3_11
&& bash /opt/python/helpers/build $PY_3_11

COPY --from=python-3.10 /usr/local/.pyenv/3.10.tar.gz /usr/local/.pyenv/3.10.tar.gz
COPY --from=python-3.9 /usr/local/.pyenv/3.9.tar.gz /usr/local/.pyenv/3.9.tar.gz
Expand Down
File renamed without changes.

0 comments on commit 1665b0d

Please sign in to comment.