Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +1 -9
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use Ubuntu 22.04 as base (Python 3.11 is default)
|
2 |
-
FROM
|
3 |
|
4 |
ENV DEBIAN_FRONTEND=noninteractive
|
5 |
|
@@ -14,14 +14,6 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
# Verify Python version
|
15 |
RUN python --version
|
16 |
|
17 |
-
# Install CUDA and cuDNN (for PyTorch)
|
18 |
-
RUN apt-get install -y \
|
19 |
-
cuda-11-8 \
|
20 |
-
libcudnn8=8.9.2.26-1+cuda11.8
|
21 |
-
|
22 |
-
# Install PyTorch (CUDA 11.8)
|
23 |
-
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
24 |
-
|
25 |
# Install a compatible dlib wheel (manylinux_x86_64)
|
26 |
RUN pip install --no-cache-dir \
|
27 |
https://www.wheelodex.org/projects/dlib-bin/wheels/dlib_bin-19.24.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
|
|
1 |
# Use Ubuntu 22.04 as base (Python 3.11 is default)
|
2 |
+
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
3 |
|
4 |
ENV DEBIAN_FRONTEND=noninteractive
|
5 |
|
|
|
14 |
# Verify Python version
|
15 |
RUN python --version
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
# Install a compatible dlib wheel (manylinux_x86_64)
|
18 |
RUN pip install --no-cache-dir \
|
19 |
https://www.wheelodex.org/projects/dlib-bin/wheels/dlib_bin-19.24.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|