It looks like you’ve already found an answer, but I have some follow up thoughts if you’re open. Seems like this Python script is used to determine system architecture, to facilitate running in many different environments. However, once you move into a Dockerfile, you have strict control over what arch you’re using (via selection of a base image). Rather than adding Python to the image, you might be able to cut out this conditional and simply hard-code the path which is appropriate for you.