tezuesh commited on
Commit
506ec9e
·
verified ·
1 Parent(s): 2fa8af3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  PYTHONUNBUFFERED=1 \
@@ -7,7 +7,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
7
  LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \
8
  TORCH_CUDA_ARCH_LIST="8.6" \
9
  NVIDIA_VISIBLE_DEVICES=all \
10
- NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics
11
 
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
13
  build-essential \
@@ -17,10 +17,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
17
  ffmpeg \
18
  libsndfile1 \
19
  curl \
20
- nvidia-cuda-toolkit \
21
  && apt-get clean \
22
  && rm -rf /var/lib/apt/lists/*
23
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  # Rest of your Dockerfile remains the same...
25
  # # System-level configuration
26
  # ENV DEBIAN_FRONTEND=noninteractive \
 
1
+ FROM nvidia/cuda:12.1.0-cudnn8-runtime-ubuntu22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  PYTHONUNBUFFERED=1 \
 
7
  LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \
8
  TORCH_CUDA_ARCH_LIST="8.6" \
9
  NVIDIA_VISIBLE_DEVICES=all \
10
+ NVIDIA_DRIVER_CAPABILITIES=all
11
 
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
13
  build-essential \
 
17
  ffmpeg \
18
  libsndfile1 \
19
  curl \
 
20
  && apt-get clean \
21
  && rm -rf /var/lib/apt/lists/*
22
 
23
+ # Python environment configuration
24
+ RUN ln -sf /usr/bin/python3 /usr/bin/python && \
25
+ curl -sS https://bootstrap.pypa.io/get-pip.py | python3 && \
26
+ python3 -m pip install --no-cache-dir pip==23.3.1 setuptools==69.0.3 wheel==0.42.0
27
+
28
+ # Install PyTorch with CUDA support
29
+ RUN pip3 install --no-cache-dir torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/cu121
30
+
31
+ WORKDIR /app
32
+ RUN mkdir -p /app/cache /app/src && \
33
+ chmod 777 /app/cache
34
+
35
  # Rest of your Dockerfile remains the same...
36
  # # System-level configuration
37
  # ENV DEBIAN_FRONTEND=noninteractive \