forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 918 Bytes
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 \
build-essential \
bash-completion \
# hdf5 needed for pytables installation
libhdf5-dev \
# libgles2-mesa needed for pytest-qt
libgles2-mesa-dev && \
rm -rf /var/lib/apt/lists/*
COPY requirements-dev.txt /tmp
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
ENV SHELL="/bin/bash"
CMD ["/bin/bash"]