mirror of
https://github.com/ghndrx/kubeflow-pipelines.git
synced 2026-02-10 14:55:11 +00:00
fix: Upgrade to torch 2.6+ for CVE-2025-32434 compliance
- Use runpod/pytorch:1.0.3-cu1290-torch260-ubuntu2204 base image - Torch 2.6.0 required by transformers for secure model loading - CUDA 12.9 compatible
This commit is contained in:
@@ -1,14 +1,12 @@
|
|||||||
FROM runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04
|
FROM runpod/pytorch:1.0.3-cu1290-torch260-ubuntu2204
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy requirements first for better caching
|
# Copy requirements first for better caching
|
||||||
COPY requirements.txt /app/requirements.txt
|
COPY requirements.txt /app/requirements.txt
|
||||||
|
|
||||||
# Upgrade pip and install dependencies
|
# Install dependencies (torch 2.8 in base image satisfies CVE-2025-32434)
|
||||||
# Force upgrade torch to ensure compatibility with transformers
|
|
||||||
RUN pip install --upgrade pip && \
|
RUN pip install --upgrade pip && \
|
||||||
pip install --no-cache-dir torch==2.4.0 --force-reinstall && \
|
|
||||||
pip install --no-cache-dir -r requirements.txt
|
pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Copy handler and data
|
# Copy handler and data
|
||||||
|
|||||||
Reference in New Issue
Block a user