diff --git a/pigpio/Dockerfile b/pigpio/Dockerfile index b1f0aaf..aa5a438 100644 --- a/pigpio/Dockerfile +++ b/pigpio/Dockerfile @@ -5,10 +5,12 @@ RUN apt-get update && apt-get -y --no-install-recommends install \ python2=2.7.18-3 \ python3=3.9.2-3 \ python-setuptools=44.1.1-1 \ - python3-setuptools=52.0.0-4 \ - git=1:2.30.2-1 \ + git=1:2.30.2-1+deb11u2 \ build-essential=12.9 +# Choose right version for architecture +RUN bash -c '[[ $(dpkg --print-architecture) == "armel" ]] && apt-get install -y --no-install-recommends python3-setuptools=52.0.0-4 || apt-get install -y --no-install-recommends python3-setuptools=52.0.0-4+deb11u1' + # hadolint ignore=DL3003 RUN git config --global advice.detachedHead false && \ git clone 'https://github.com/joan2937/pigpio.git' -b v79 /pigpio &&\