Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -15
Dockerfile
CHANGED
@@ -1,28 +1,19 @@
|
|
1 |
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04
|
2 |
#CMD nvidia-smi
|
3 |
|
4 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
5 |
-
|
6 |
-
|
|
|
7 |
|
8 |
-
# Install Git, Python 3.9, and required packages
|
9 |
-
RUN apt-get update && \
|
10 |
-
apt-get install -y software-properties-common && \
|
11 |
-
add-apt-repository ppa:deadsnakes/ppa && \
|
12 |
-
apt-get update && \
|
13 |
-
apt-get install -y git python3.9 python3.9-dev python3-pip wget libgl1-mesa-glx && \
|
14 |
-
apt-get clean && \
|
15 |
-
rm -rf /var/lib/apt/lists/* && \
|
16 |
-
wget https://bootstrap.pypa.io/get-pip.py && \
|
17 |
-
python3.9 get-pip.py && \
|
18 |
-
rm get-pip.py
|
19 |
-
|
20 |
# Set up a new user named "user" with user ID 1000
|
21 |
RUN useradd -m -u 1000 user
|
22 |
|
23 |
# Switch to the "user" user
|
24 |
USER user
|
25 |
|
|
|
|
|
26 |
|
27 |
# Set the working directory to the user's home directory
|
28 |
WORKDIR $HOME/app
|
|
|
1 |
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04
|
2 |
#CMD nvidia-smi
|
3 |
|
4 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
5 |
+
|
6 |
+
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y sudo && apt-get install -y python3-pip && pip3 install --upgrade pip
|
7 |
+
RUN apt-get install -y curl gnupg wget htop sudo git git-lfs software-properties-common build-essential libgl1 zip unzip
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# Set up a new user named "user" with user ID 1000
|
10 |
RUN useradd -m -u 1000 user
|
11 |
|
12 |
# Switch to the "user" user
|
13 |
USER user
|
14 |
|
15 |
+
ENV HOME=/home/user \
|
16 |
+
PATH=/home/user/.local/bin:$PATH
|
17 |
|
18 |
# Set the working directory to the user's home directory
|
19 |
WORKDIR $HOME/app
|