gfjiogopdfgdfs commited on
Commit
ee62452
·
verified ·
1 Parent(s): e6835aa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -2,18 +2,23 @@ FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
2
  # Install necessary packages
3
  RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
4
  RUN apt update && apt install -y wget
5
- RUN apt install python3.10-venv
6
  RUN apt-get install -y nodejs npm
7
  RUN npm install -g localtunnel
 
8
  # Set up a new user named "user" with user ID 1000
9
  RUN useradd -m -u 1000 user
 
10
  # Switch to the "user" user
11
  USER user
 
12
  # Set home to the user's home directory
13
  ENV HOME=/home/user \
14
  PATH=/home/user/.local/bin:$PATH
 
15
  # Set the working directory to the user's home directory
16
  WORKDIR $HOME/app
 
17
  # Create a virtual environment and activate it
18
  RUN python3 -m venv venv
19
  ENV PATH="$HOME/app/venv/bin:$PATH"
 
2
  # Install necessary packages
3
  RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
4
  RUN apt update && apt install -y wget
5
+ RUN apt install python3.10-venv -y
6
  RUN apt-get install -y nodejs npm
7
  RUN npm install -g localtunnel
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
  # Set home to the user's home directory
16
  ENV HOME=/home/user \
17
  PATH=/home/user/.local/bin:$PATH
18
+
19
  # Set the working directory to the user's home directory
20
  WORKDIR $HOME/app
21
+
22
  # Create a virtual environment and activate it
23
  RUN python3 -m venv venv
24
  ENV PATH="$HOME/app/venv/bin:$PATH"