Skip to content

Commit ddc4fa9

Browse files
committed
Ensure that pip3.11 can be discovered by CF Buildpack.
1 parent 6e18b4d commit ddc4fa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rootfs-builder.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ RUN PYTHON_BUILD_RPMS="python3.11-pip python3.11-devel libffi-devel gcc" && \
6868
microdnf install -y $PYTHON_BUILD_RPMS && \
6969
mkdir -p /home/vcap/.local/bin/ && \
7070
if [ ! -f /home/vcap/.local/bin/pip ] ; then ln -s /usr/bin/pip3.11 /home/vcap/.local/bin/pip ; fi && \
71+
if ! command -v pip3 ; then ln -s /usr/bin/pip3.11 /usr/bin/pip3 ; fi && \
7172
rm /opt/mendix/buildpack/vendor/wheels/* && \
7273
chmod +rx /opt/mendix/buildpack/bin/bootstrap-python && /opt/mendix/buildpack/bin/bootstrap-python /opt/mendix/buildpack /tmp/buildcache && \
7374
microdnf remove -y $PYTHON_BUILD_RPMS && microdnf clean all && rm -rf /var/cache/yum

0 commit comments

Comments
 (0)