terry-li-hm
commited on
Commit
·
2667116
1
Parent(s):
71b919a
`nvidia-smi`
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
FROM python:3.9
|
|
|
|
|
2 |
RUN useradd -m -u 1000 user
|
3 |
USER user
|
4 |
ENV HOME=/home/user \
|
@@ -7,7 +9,8 @@ WORKDIR $HOME/app
|
|
7 |
COPY --chown=user . $HOME/app
|
8 |
COPY ./requirements.txt ~/app/requirements.txt
|
9 |
RUN pip install -r requirements.txt
|
10 |
-
RUN lspci | grep NVIDIA
|
|
|
11 |
# RUN pip install accelerate
|
12 |
# RUN pip install -i https://test.pypi.org/simple/ bitsandbytes
|
13 |
# RUN pip install --upgrade -i https://test.pypi.org/simple/ bitsandbytes
|
|
|
1 |
FROM python:3.9
|
2 |
+
# RUN sudo apt-get remove --purge '^nvidia-.*'
|
3 |
+
# RUN sudo apt-get install nvidia-driver-545.92
|
4 |
RUN useradd -m -u 1000 user
|
5 |
USER user
|
6 |
ENV HOME=/home/user \
|
|
|
9 |
COPY --chown=user . $HOME/app
|
10 |
COPY ./requirements.txt ~/app/requirements.txt
|
11 |
RUN pip install -r requirements.txt
|
12 |
+
# RUN lspci | grep NVIDIA
|
13 |
+
RUN nvidia-smi
|
14 |
# RUN pip install accelerate
|
15 |
# RUN pip install -i https://test.pypi.org/simple/ bitsandbytes
|
16 |
# RUN pip install --upgrade -i https://test.pypi.org/simple/ bitsandbytes
|