terry-li-hm
commited on
Commit
·
983b133
1
Parent(s):
a344245
Install driver
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
@@ -9,18 +9,29 @@ FROM python:3.9
|
|
9 |
# RUN sudo apt-get upgrade
|
10 |
# RUN sudo apt-get dist-upgrade
|
11 |
# RUN sudo apt-get install nvidia-driver-545.92
|
|
|
12 |
RUN useradd -m -u 1000 user
|
|
|
13 |
USER user
|
|
|
14 |
ENV HOME=/home/user \
|
15 |
PATH=/home/user/.local/bin:$PATH
|
|
|
16 |
WORKDIR $HOME/app
|
|
|
|
|
|
|
17 |
COPY --chown=user . $HOME/app
|
18 |
COPY ./requirements.txt ~/app/requirements.txt
|
|
|
|
|
|
|
19 |
RUN pip install -r requirements.txt
|
20 |
# RUN lspci | grep NVIDIA
|
21 |
# RUN nvidia-smi
|
22 |
# RUN pip install accelerate
|
23 |
# RUN pip install -i https://test.pypi.org/simple/ bitsandbytes
|
24 |
# RUN pip install --upgrade -i https://test.pypi.org/simple/ bitsandbytes
|
|
|
25 |
COPY . .
|
26 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
9 |
# RUN sudo apt-get upgrade
|
10 |
# RUN sudo apt-get dist-upgrade
|
11 |
# RUN sudo apt-get install nvidia-driver-545.92
|
12 |
+
|
13 |
RUN useradd -m -u 1000 user
|
14 |
+
|
15 |
USER user
|
16 |
+
|
17 |
ENV HOME=/home/user \
|
18 |
PATH=/home/user/.local/bin:$PATH
|
19 |
+
|
20 |
WORKDIR $HOME/app
|
21 |
+
|
22 |
+
RUN pip install --no-cache-dir --upgrade pip
|
23 |
+
|
24 |
COPY --chown=user . $HOME/app
|
25 |
COPY ./requirements.txt ~/app/requirements.txt
|
26 |
+
|
27 |
+
RUN apt-get install nvidia-driver-545.92
|
28 |
+
|
29 |
RUN pip install -r requirements.txt
|
30 |
# RUN lspci | grep NVIDIA
|
31 |
# RUN nvidia-smi
|
32 |
# RUN pip install accelerate
|
33 |
# RUN pip install -i https://test.pypi.org/simple/ bitsandbytes
|
34 |
# RUN pip install --upgrade -i https://test.pypi.org/simple/ bitsandbytes
|
35 |
+
|
36 |
COPY . .
|
37 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|