From 2d2d9be4c538cc018cd9ad3b3bc8f7535a530abe Mon Sep 17 00:00:00 2001 From: Gabriele Tramonte Date: Thu, 2 May 2024 10:51:14 +0200 Subject: [PATCH] pip flag break system package --- Dockerfile.base | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile.base b/Dockerfile.base index 5eed9b6..2844422 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -2,8 +2,6 @@ FROM ubuntu:latest RUN apt update && apt install -y build-essential git gfortran python3-pip -RUN rm /usr/lib/python3.11/EXTERNALLY-MANAGED - WORKDIR /opt RUN git clone https://github.com/esmf-org/esmf.git @@ -17,10 +15,10 @@ RUN make -j4 ENV ESMFMKFILE=/opt/esmf/lib/libO/Linux.gfortran.64.mpiuni.default/esmf.mk WORKDIR /opt/esmf/src/addon/ESMPy -RUN pip install numpy +RUN pip install numpy --break-system-packages RUN python3 setup.py install RUN pip install git+https://github.com/pangeo-data/xesmf.git@v0.6.3 COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt \ No newline at end of file +RUN pip install -r /tmp/requirements.txt --break-system-packages \ No newline at end of file