Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -14
Dockerfile
CHANGED
@@ -3,14 +3,11 @@ FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
ENV MKL_THREADING_LAYER=GNU
|
5 |
|
6 |
-
# Install dependencies
|
7 |
RUN apt-get update && apt-get install -y \
|
8 |
git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
|
9 |
-
build-essential cmake g++ python3-dev
|
10 |
-
|
11 |
-
# Install required system dependencies
|
12 |
-
RUN apt-get update && apt-get install -y \
|
13 |
-
software-properties-common wget gnupg2 && \
|
14 |
rm -rf /var/lib/apt/lists/*
|
15 |
|
16 |
# Add NVIDIA package repositories
|
@@ -18,12 +15,8 @@ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86
|
|
18 |
dpkg -i cuda-keyring_1.0-1_all.deb && \
|
19 |
apt-get update
|
20 |
|
21 |
-
# Install CUDA
|
22 |
-
RUN apt-get install -y
|
23 |
-
cuda-command-line-tools-11-7 \
|
24 |
-
libcusolver-dev-11-7 \
|
25 |
-
libcublas-dev \
|
26 |
-
libcudnn8
|
27 |
|
28 |
# Create a user
|
29 |
RUN useradd -m -u 1000 user
|
@@ -63,8 +56,8 @@ RUN pip install --no-cache-dir urllib3 transformers yacs scipy scikit-image scik
|
|
63 |
# Install CMake first
|
64 |
RUN pip install cmake
|
65 |
|
66 |
-
#
|
67 |
-
RUN pip install dlib
|
68 |
|
69 |
# Copy application file
|
70 |
COPY app.py .
|
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
ENV MKL_THREADING_LAYER=GNU
|
5 |
|
6 |
+
# Install dependencies
|
7 |
RUN apt-get update && apt-get install -y \
|
8 |
git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
|
9 |
+
build-essential cmake g++ python3-dev software-properties-common \
|
10 |
+
wget gnupg2 libopenblas-dev && \
|
|
|
|
|
|
|
11 |
rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
# Add NVIDIA package repositories
|
|
|
15 |
dpkg -i cuda-keyring_1.0-1_all.deb && \
|
16 |
apt-get update
|
17 |
|
18 |
+
# Install CUDA Toolkit (includes libcublas)
|
19 |
+
RUN apt-get install -y cuda-toolkit-11-7 libcudnn8
|
|
|
|
|
|
|
|
|
20 |
|
21 |
# Create a user
|
22 |
RUN useradd -m -u 1000 user
|
|
|
56 |
# Install CMake first
|
57 |
RUN pip install cmake
|
58 |
|
59 |
+
# Install dlib with CUDA support (force source compilation)
|
60 |
+
RUN pip install --no-cache-dir dlib -vvv --no-binary dlib
|
61 |
|
62 |
# Copy application file
|
63 |
COPY app.py .
|