Leon4gr45 commited on
Commit
65896ec
·
verified ·
1 Parent(s): debad0a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -1,15 +1,12 @@
1
- # 1. Start from the PyTorch DEVEL image. This is the correct, full-featured base.
2
- FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-devel
3
 
4
- # 2. Set environment variables. The LD_LIBRARY_PATH is good practice but may be redundant
5
- # in this well-configured image. It doesn't hurt to keep it.
6
  ENV DEBIAN_FRONTEND=noninteractive
7
  ENV HF_HOME="/data/huggingface"
8
  ENV UV_CACHE_DIR="/data/uv_cache"
9
- ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib64:$LD_LIBRARY_PATH
10
 
11
- # 3. Install git and uv. The base image has most tools, but we add these.
12
- RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
13
  RUN pip install uv
14
 
15
  # 4. Copy requirements and install them.
 
1
+ # 1. Start from a community-vetted, GPU-ready image
2
+ FROM runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel
3
 
4
+ # 2. Set up the environment
 
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV HF_HOME="/data/huggingface"
7
  ENV UV_CACHE_DIR="/data/uv_cache"
 
8
 
9
+ # 3. The base image already has python, pip, etc. Install uv.
 
10
  RUN pip install uv
11
 
12
  # 4. Copy requirements and install them.