Skip to content

Commit 803fba4

Browse files
Update Dockerfile.slim
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Eric Kerfoot <[email protected]>
1 parent 39ecb09 commit 803fba4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile.slim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ RUN apt update && apt upgrade -y && \
6969

7070
COPY --from=build /opt/monai /opt/monai
7171
COPY --from=build /opt/tools /opt/tools
72-
COPY --from=build /usr/local/lib/python3.11/dist-packages /usr/local/lib/python3.11/dist-packages
72+
ARG PYTHON_VERSION=3.11
73+
COPY --from=build /usr/local/lib/python${PYTHON_VERSION}/dist-packages /usr/local/lib/python${PYTHON_VERSION}/dist-packages
7374
COPY --from=build /usr/local/bin /usr/local/bin
7475

7576
RUN rm -rf /opt/monai/build /opt/monai/monai.egg-info && \

0 commit comments

Comments
 (0)