haritsahm commited on
Commit
7e11c00
·
1 Parent(s): ce29101

update docker to use cuda image

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- from ubuntu:20.04
2
 
3
  RUN apt update && \
4
  apt install -y bash \
@@ -11,7 +11,7 @@ RUN apt update && \
11
  rm -rf /var/lib/apt/lists
12
 
13
  RUN python3 -m pip install --no-cache-dir --upgrade pip && \
14
- python3 -m pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu \
15
  torch \
16
  torchvision \
17
  torchaudio
 
1
+ from nvidia/cuda:11.3.1-runtime-ubuntu20.04
2
 
3
  RUN apt update && \
4
  apt install -y bash \
 
11
  rm -rf /var/lib/apt/lists
12
 
13
  RUN python3 -m pip install --no-cache-dir --upgrade pip && \
14
+ python3 -m pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cu113 \
15
  torch \
16
  torchvision \
17
  torchaudio