fffiloni commited on
Commit
4997f0e
·
verified ·
1 Parent(s): 57db10c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -7,18 +7,16 @@ ENV DEBIAN_FRONTEND=noninteractive
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 && \
14
- ln -sf /usr/bin/pip3 /usr/bin/pip
15
 
16
- # Confirm Python version
17
  RUN python --version
18
 
19
- # Use a prebuilt dlib wheel instead of compiling
20
  RUN pip install --no-cache-dir \
21
- https://www.piwheels.org/simple/dlib/dlib-19.24.6-cp311-cp311-linux_x86_64.whl
22
 
23
  # Set up user
24
  RUN useradd -m -u 1000 user
 
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
+ update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \
12
+ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
 
 
13
 
14
+ # Verify Python version
15
  RUN python --version
16
 
17
+ # Install a compatible dlib wheel
18
  RUN pip install --no-cache-dir \
19
+ dlib
20
 
21
  # Set up user
22
  RUN useradd -m -u 1000 user