Skip to content

Commit 460b840

Browse files
committed
torchcpu
1 parent 1aaf6be commit 460b840

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ RUN apt-get update && apt-get install -y \
1111
# pyproject.toml 복사 및 의존성 설치
1212
COPY pyproject.toml .
1313
RUN pip install --no-cache-dir --upgrade pip && \
14-
pip install --no-cache-dir .
14+
pip install --no-cache-dir torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu
15+
16+
# 3. 나머지 종속성 설치 (이때 pyproject.toml의 torch는 이미 설치되어 패스됨)
17+
RUN pip install --no-cache-dir .
1518

1619
# 애플리케이션 코드 복사
1720
COPY . .

0 commit comments

Comments
 (0)