fix: remove --break-system-packages flag (Ubuntu 22.04 pip 미지원)
CI — Build & Push Scenario Images / build-and-push (scenario-1-nofix, nofix) (push) Successful in 8m4s Details
CI — Build & Push Scenario Images / build-and-push (scenario-2-tini-only, tini) (push) Successful in 8m10s Details
CI — Build & Push Scenario Images / build-and-push (scenario-4-fullfix, fullfix) (push) Successful in 7s Details
CD — Package & Deploy Helm Chart / deploy (push) Successful in 7s Details

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) <noreply@anthropic.com>
This commit is contained in:
selee 2026-04-10 17:21:10 +09:00
parent 6b6754afd9
commit 1aad467a61
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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