File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.11.13
2
2
WORKDIR /home/pandas
3
3
4
+ # https://docs.docker.com/reference/dockerfile/#automatic-platform-args-in-the-global-scope
5
+ ARG TARGETPLATFORM
6
+
4
7
RUN apt-get update && \
5
8
apt-get --no-install-recommends -y upgrade && \
6
9
apt-get --no-install-recommends -y install \
@@ -13,7 +16,14 @@ RUN apt-get update && \
13
16
rm -rf /var/lib/apt/lists/*
14
17
15
18
COPY requirements-dev.txt /tmp
16
- RUN python -m pip install --no-cache-dir --upgrade pip && \
19
+
20
+ RUN case "$TARGETPLATFORM" in \
21
+ linux/arm*) \
22
+ # Drop PyQt5 for ARM GH#61037
23
+ sed -i "/^pyqt5/Id" /tmp/requirements-dev.txt \
24
+ ;; \
25
+ esac && \
26
+ python -m pip install --no-cache-dir --upgrade pip && \
17
27
python -m pip install --no-cache-dir -r /tmp/requirements-dev.txt
18
28
RUN git config --global --add safe.directory /home/pandas
19
29
You can’t perform that action at this time.
0 commit comments