diff --git a/Dockerfile b/Dockerfile index 41112b00950f3..6d919e80191bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ FROM python:3.11.13 WORKDIR /home/pandas +# https://docs.docker.com/reference/dockerfile/#automatic-platform-args-in-the-global-scope +ARG TARGETPLATFORM + RUN apt-get update && \ apt-get --no-install-recommends -y upgrade && \ apt-get --no-install-recommends -y install \ @@ -13,7 +16,14 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* COPY requirements-dev.txt /tmp -RUN python -m pip install --no-cache-dir --upgrade pip && \ + +RUN case "$TARGETPLATFORM" in \ + linux/arm*) \ + # Drop PyQt5 for ARM GH#61037 + sed -i "/^pyqt5/Id" /tmp/requirements-dev.txt \ + ;; \ + esac && \ + python -m pip install --no-cache-dir --upgrade pip && \ python -m pip install --no-cache-dir -r /tmp/requirements-dev.txt RUN git config --global --add safe.directory /home/pandas