Spaces:
Runtime error
Runtime error
Updated Dockerfile for GPU Dependencies
Browse files- Dockerfile +21 -15
Dockerfile
CHANGED
@@ -12,6 +12,23 @@ ENV LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
|
|
12 |
# # Install NVIDIA driver
|
13 |
# RUN apt-get update && apt-get install -y --no-install-recommends nvidia-driver-460
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
RUN apt-get -y update \
|
16 |
&& apt-get install -y software-properties-common
|
17 |
|
@@ -22,31 +39,20 @@ RUN apt-get -y update \
|
|
22 |
# Install Python 3.10
|
23 |
RUN apt-get -y update \
|
24 |
&& apt-get install -y python3.10 python3.10-distutils
|
|
|
|
|
25 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
|
26 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2
|
27 |
RUN update-alternatives --config python3
|
28 |
|
29 |
-
# Install curl
|
30 |
-
RUN apt-get update && apt-get install -y curl
|
31 |
-
|
32 |
# Download and install pip for Python 3.10
|
33 |
-
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
34 |
-
|
35 |
|
36 |
# Check Python and pip versions
|
37 |
RUN python3.10 --version \
|
38 |
&& pip --version
|
39 |
|
40 |
-
# RUN apt-get -y update \
|
41 |
-
# && apt-get -y install git
|
42 |
-
|
43 |
-
# # Additional system dependencies
|
44 |
-
# RUN apt-get -y update \
|
45 |
-
# && apt-get install -y ffmpeg \
|
46 |
-
# && apt-get install -y yt-dlp
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
# # FROM python:3.10
|
51 |
|
52 |
# Switch back to the root user to install Python packages
|
|
|
12 |
# # Install NVIDIA driver
|
13 |
# RUN apt-get update && apt-get install -y --no-install-recommends nvidia-driver-460
|
14 |
|
15 |
+
# Install curl
|
16 |
+
RUN apt-get update \
|
17 |
+
&& apt-get install -y curl
|
18 |
+
|
19 |
+
# Install git
|
20 |
+
RUN apt-get -y update \
|
21 |
+
&& apt-get install -y git
|
22 |
+
|
23 |
+
# Install ffmpeg
|
24 |
+
RUN apt-get -y update \
|
25 |
+
&& apt-get install -y ffmpeg
|
26 |
+
|
27 |
+
# Install yt-dlp
|
28 |
+
RUN apt-get -y update \
|
29 |
+
&& apt-get install -y yt-dlp
|
30 |
+
|
31 |
+
# Install Python Dependencies
|
32 |
RUN apt-get -y update \
|
33 |
&& apt-get install -y software-properties-common
|
34 |
|
|
|
39 |
# Install Python 3.10
|
40 |
RUN apt-get -y update \
|
41 |
&& apt-get install -y python3.10 python3.10-distutils
|
42 |
+
|
43 |
+
# Setting Python 3.10 as the default
|
44 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
|
45 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2
|
46 |
RUN update-alternatives --config python3
|
47 |
|
|
|
|
|
|
|
48 |
# Download and install pip for Python 3.10
|
49 |
+
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
50 |
+
&& python3.10 get-pip.py
|
51 |
|
52 |
# Check Python and pip versions
|
53 |
RUN python3.10 --version \
|
54 |
&& pip --version
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
# # FROM python:3.10
|
57 |
|
58 |
# Switch back to the root user to install Python packages
|