Files
kubeflow-pipelines/components/runpod_trainer/Dockerfile
Greg Hendrickson 9b66b5fd14 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
2026-02-03 06:02:38 +00:00

22 lines
570 B
Docker

FROM runpod/pytorch:1.0.3-cu1290-torch260-ubuntu2204
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt /app/requirements.txt
# Install dependencies (torch 2.8 in base image satisfies CVE-2025-32434)
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy handler and data
COPY handler.py /app/handler.py
COPY data/ /app/data/
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV HF_HOME=/tmp/huggingface
ENV DDI_DATA_PATH=/app/data/drugbank_ddi_complete.jsonl
CMD ["python", "-u", "handler.py"]