@@ -30,7 +30,7 @@ RUN apt update && apt upgrade -y && \
3030 apt update && \
3131 ${APT_INSTALL} cuda-toolkit-12 && \
3232 rm -rf /usr/lib/python*/EXTERNALLY-MANAGED /var/lib/apt/lists/* && \
33- python -m pip install --upgrade --no-cache-dir pip
33+ python -m pip install --upgrade --no-cache-dir --no-build-isolation pip
3434
3535# TODO: remark for issue [revise the dockerfile](https://github.com/zarr-developers/numcodecs/issues/431)
3636RUN if [[ $(uname -m) =~ "aarch64" ]]; then \
@@ -53,7 +53,7 @@ COPY tests ./tests
5353COPY monai ./monai
5454
5555# install full deps
56- RUN python -m pip install --no-cache-dir -r requirements-dev.txt
56+ RUN python -m pip install --no-cache-dir --no-build-isolation - r requirements-dev.txt
5757
5858# compile ext
5959RUN CUDA_HOME =/usr/ local/ cuda FORCE_CUDA =1 USE_COMPILED =1 BUILD_MONAI =1 python setup.py develop
@@ -68,7 +68,7 @@ RUN apt update && apt upgrade -y && \
6868 ${APT_INSTALL} ca-certificates python3-pip python-is-python3 git libopenslide0 && \
6969 apt clean && \
7070 rm -rf /usr/lib/python*/EXTERNALLY-MANAGED /var/lib/apt/lists/* && \
71- python -m pip install --upgrade --no-cache-dir pip
71+ python -m pip install --upgrade --no-cache-dir --no-build-isolation pip
7272
7373COPY - - from= build / opt/ monai / opt/ monai
7474COPY - - from= build / opt/ tools / opt/ tools
@@ -77,7 +77,7 @@ COPY --from=build /usr/local/lib/python${PYTHON_VERSION}/dist-packages /usr/loca
7777COPY - - from= build / usr/ local/ bin / usr/ local/ bin
7878
7979RUN rm -rf /opt/monai/build /opt/monai/monai.egg-info && \
80- find / - name __pycache__ | xargs rm -rf
80+ find /opt /usr/local/lib -type d - name __pycache__ -exec rm -rf {} +
8181
8282# flatten all layers down to one
8383FROM ${IMAGE}
0 commit comments