Spaces:
Sleeping
Sleeping
Commit
·
43b01f6
1
Parent(s):
e2f5240
dffdfddf
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -1,17 +1,15 @@
|
|
1 |
-
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
-
# Install
|
6 |
RUN apt-get update && \
|
7 |
-
apt-get install -y software-properties-common && \
|
8 |
-
add-apt-repository ppa:deadsnakes/ppa && \
|
9 |
-
apt-get update && \
|
10 |
apt-get install -y \
|
11 |
python3.10 \
|
12 |
python3.10-venv \
|
13 |
python3.10-distutils \
|
14 |
python3-pip \
|
|
|
15 |
wget \
|
16 |
git \
|
17 |
libgl1 \
|
@@ -40,7 +38,7 @@ WORKDIR /app
|
|
40 |
COPY --chown=user:user requirements.txt .
|
41 |
|
42 |
# Upgrade pip and install PyTorch dependencies first
|
43 |
-
# Use versions compatible with CUDA 12.1
|
44 |
RUN pip install --no-cache-dir --upgrade pip && \
|
45 |
pip install --no-cache-dir \
|
46 |
torch==2.1.2 \
|
|
|
1 |
+
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
+
# Install Python and ML dependencies
|
6 |
RUN apt-get update && \
|
|
|
|
|
|
|
7 |
apt-get install -y \
|
8 |
python3.10 \
|
9 |
python3.10-venv \
|
10 |
python3.10-distutils \
|
11 |
python3-pip \
|
12 |
+
python3-dev \
|
13 |
wget \
|
14 |
git \
|
15 |
libgl1 \
|
|
|
38 |
COPY --chown=user:user requirements.txt .
|
39 |
|
40 |
# Upgrade pip and install PyTorch dependencies first
|
41 |
+
# Use versions compatible with CUDA 12.1 for NVIDIA L4 support
|
42 |
RUN pip install --no-cache-dir --upgrade pip && \
|
43 |
pip install --no-cache-dir \
|
44 |
torch==2.1.2 \
|