From 1aad467a61ecc0a6ce504b80c3b0547c20acc5c4 Mon Sep 17 00:00:00 2001 From: selee Date: Fri, 10 Apr 2026 17:21:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20--break-system-packages=20flag?= =?UTF-8?q?=20(Ubuntu=2022.04=20pip=20=EB=AF=B8=EC=A7=80=EC=9B=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pip 23.0.1+에서 도입된 옵션이라 Ubuntu 22.04 (pip 22.0.2) 에서 에러. nvidia/cuda:12.1.0-runtime-ubuntu22.04 는 externally-managed가 아니라 플래그 불필요. 대신 --no-cache-dir로 이미지 크기 최소화. Co-Authored-By: Claude Opus 4.6 (1M context) --- scenario-1-nofix/Dockerfile | 2 +- scenario-2-tini-only/Dockerfile | 2 +- scenario-4-fullfix/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scenario-1-nofix/Dockerfile b/scenario-1-nofix/Dockerfile index baf51f9..fe40440 100644 --- a/scenario-1-nofix/Dockerfile +++ b/scenario-1-nofix/Dockerfile @@ -1,7 +1,7 @@ FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04 RUN apt-get update && apt-get install -y python3 python3-pip procps psmisc && \ - pip3 install torch --break-system-packages && \ + pip3 install --no-cache-dir torch && \ rm -rf /var/lib/apt/lists/* WORKDIR /app diff --git a/scenario-2-tini-only/Dockerfile b/scenario-2-tini-only/Dockerfile index 059648a..76ace95 100644 --- a/scenario-2-tini-only/Dockerfile +++ b/scenario-2-tini-only/Dockerfile @@ -4,7 +4,7 @@ FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04 # 시나리오 2는 preStop hook 자체가 없어서 prestop.sh를 호출하지 않음. RUN apt-get update && apt-get install -y python3 python3-pip procps psmisc tini && \ - pip3 install torch --break-system-packages && \ + pip3 install --no-cache-dir torch && \ rm -rf /var/lib/apt/lists/* WORKDIR /app diff --git a/scenario-4-fullfix/Dockerfile b/scenario-4-fullfix/Dockerfile index ad204c4..aecea02 100644 --- a/scenario-4-fullfix/Dockerfile +++ b/scenario-4-fullfix/Dockerfile @@ -1,7 +1,7 @@ FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04 RUN apt-get update && apt-get install -y python3 python3-pip procps psmisc tini && \ - pip3 install torch --break-system-packages && \ + pip3 install --no-cache-dir torch && \ rm -rf /var/lib/apt/lists/* WORKDIR /app