Spaces:
Paused
Paused
Update Dockerfile
Browse files- 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 |
-
|
12 |
-
|
13 |
-
ln -sf /usr/bin/python3.11 /usr/bin/python && \
|
14 |
-
ln -sf /usr/bin/pip3 /usr/bin/pip
|
15 |
|
16 |
-
#
|
17 |
RUN python --version
|
18 |
|
19 |
-
#
|
20 |
RUN pip install --no-cache-dir \
|
21 |
-
|
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
|