From 11f58dc9c99fa6140f43e97e49ab198bde97ba76 Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian <95260730+RadxaYuntian@users.noreply.github.com> Date: Fri, 22 Sep 2023 10:16:05 +0800 Subject: [PATCH] container: pin pyelftools to v0.29 eliben/pyelftools#503 --- container/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/container/Dockerfile b/container/Dockerfile index bb6e235d..de904c03 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -1,5 +1,9 @@ # syntax=docker/dockerfile:1 +# This appears to be required for local Podman image +# But breaks GitHub CI for image building +# ARG TARGETARCH + FROM debian:bullseye as base-arm64 RUN apt-get update && \ apt-get full-upgrade --no-install-recommends -y \ @@ -19,6 +23,6 @@ RUN dpkg --add-architecture arm64 && \ FROM base-${TARGETARCH} as output RUN gem install fpm && \ curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python2 && \ - python2 -m pip install pyelftools && \ + python2 -m pip install pyelftools==0.29 && \ adduser --gecos runner --disabled-password runner && \ rm -rf /var/lib/apt/lists/*