Update Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# devel needed for bitsandbytes requirement of libcudart.so, otherwise runtime sufficient
|
2 |
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu20.04
|
3 |
|
|
|
1 |
+
RUN useradd -m -u 1000 user
|
2 |
+
|
3 |
+
# Switch to the "user" user
|
4 |
+
USER user
|
5 |
+
|
6 |
+
# Set home to the user's home directory
|
7 |
+
ENV HOME=/home/user \
|
8 |
+
PATH=/home/user/.local/bin:$PATH
|
9 |
+
|
10 |
+
# Set the working directory to the user's home directory
|
11 |
+
WORKDIR $HOME/app
|
12 |
+
|
13 |
# devel needed for bitsandbytes requirement of libcudart.so, otherwise runtime sufficient
|
14 |
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu20.04
|
15 |
|