fffiloni commited on
Commit
57db10c
·
verified ·
1 Parent(s): 8c81784

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -3,9 +3,11 @@ FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel
3
 
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Install Python 3.11 explicitly
7
- RUN apt-get update && apt-get install -y \
8
- python3.11 python3.11-dev python3.11-venv python3-pip \
 
 
9
  git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
10
  build-essential cmake libboost-all-dev && \
11
  ln -sf /usr/bin/python3.11 /usr/bin/python && \
 
3
 
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Install prerequisites and add PPA for Python 3.11
7
+ RUN apt-get update && apt-get install -y software-properties-common && \
8
+ add-apt-repository -y ppa:deadsnakes/ppa && \
9
+ apt-get update && apt-get install -y \
10
+ python3.11 python3.11-dev python3.11-venv python3.11-distutils python3-pip \
11
  git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
12
  build-essential cmake libboost-all-dev && \
13
  ln -sf /usr/bin/python3.11 /usr/bin/python && \