Skip to content

Commit 55acac4

Browse files
committed
Comment updates
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent 84087b9 commit 55acac4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile.slim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
3636
RUN if [[ $(uname -m) =~ "aarch64" ]]; then \
@@ -53,7 +53,7 @@ COPY tests ./tests
5353
COPY 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
5959
RUN 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

7373
COPY --from=build /opt/monai /opt/monai
7474
COPY --from=build /opt/tools /opt/tools
@@ -77,7 +77,7 @@ COPY --from=build /usr/local/lib/python${PYTHON_VERSION}/dist-packages /usr/loca
7777
COPY --from=build /usr/local/bin /usr/local/bin
7878

7979
RUN 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
8383
FROM ${IMAGE}

0 commit comments

Comments
 (0)