Skip to content

Commit

Permalink
pip flag break system package
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed May 2, 2024
1 parent 58dd58c commit 2d2d9be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/[email protected]

COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt --break-system-packages

0 comments on commit 2d2d9be

Please sign in to comment.