diff --git a/Dockerfile b/Dockerfile index 4090a4adb1af8..e778312fd3aa2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,20 @@ FROM python:3.10.8 WORKDIR /home/pandas -RUN apt-get update && apt-get -y upgrade -RUN apt-get install -y build-essential bash-completion +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/* -# hdf5 needed for pytables installation -# libgles2-mesa needed for pytest-qt -RUN apt-get install -y libhdf5-dev libgles2-mesa-dev - -RUN python -m pip install --upgrade pip COPY requirements-dev.txt /tmp -RUN python -m pip install -r /tmp/requirements-dev.txt +RUN 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"