ayushpfullstack commited on
Commit
a0d8b34
·
verified ·
1 Parent(s): 1d7df5f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # Use the CUDA 11.8 base image
2
- FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
3
 
4
  # Set up the environment
5
  ENV DEBIAN_FRONTEND=noninteractive
@@ -19,9 +19,8 @@ ENV HF_HOME=/app/cache
19
  # Create the cache directory and give it open permissions
20
  RUN mkdir -p /app/cache && chmod 777 /app/cache
21
 
22
- # ⭐⭐⭐ ADD THIS BLOCK ⭐⭐⭐
23
- # Install PyTorch and related libraries for CUDA 11.8 separately
24
- RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
25
 
26
  # Copy and install the rest of the Python dependencies
27
  COPY requirements.txt .
 
1
+ # STEP 1: Change this line to a CUDA 11.7.1 base image
2
+ FROM nvidia/cuda:11.7.1-devel-ubuntu22.04
3
 
4
  # Set up the environment
5
  ENV DEBIAN_FRONTEND=noninteractive
 
19
  # Create the cache directory and give it open permissions
20
  RUN mkdir -p /app/cache && chmod 777 /app/cache
21
 
22
+ # STEP 2: Change this line to install PyTorch for CUDA 11.7
23
+ RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
 
24
 
25
  # Copy and install the rest of the Python dependencies
26
  COPY requirements.txt .