Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +22 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,28 @@
|
|
| 1 |
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04
|
| 2 |
-
CMD nvidia-smi
|
| 3 |
|
| 4 |
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# Set up a new user named "user" with user ID 1000
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
|
|
|
|
| 1 |
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04
|
| 2 |
+
#CMD nvidia-smi
|
| 3 |
|
| 4 |
ENV DEBIAN_FRONTEND noninteractive
|
| 5 |
+
|
| 6 |
+
# Install Git, Python 3.9, and required packages
|
| 7 |
+
RUN apt-get update && \
|
| 8 |
+
apt-get install -y git python3.9 python3.9-dev python3-pip && \
|
| 9 |
+
apt-get clean && \
|
| 10 |
+
rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
# Set Python 3.9 as the default
|
| 13 |
+
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
| 14 |
+
|
| 15 |
+
# Install pip for Python 3.9
|
| 16 |
+
RUN wget https://bootstrap.pypa.io/get-pip.py && \
|
| 17 |
+
python3.9 get-pip.py && \
|
| 18 |
+
rm get-pip.py
|
| 19 |
+
|
| 20 |
+
# Install Git
|
| 21 |
+
RUN apt-get update && \
|
| 22 |
+
apt-get install -y git && \
|
| 23 |
+
apt-get clean && \
|
| 24 |
+
rm -rf /var/lib/apt/lists/*
|
| 25 |
+
|
| 26 |
# Set up a new user named "user" with user ID 1000
|
| 27 |
RUN useradd -m -u 1000 user
|
| 28 |
|