terry-li-hm
commited on
Commit
·
71b919a
1
Parent(s):
5fc5163
`lspci | grep NVIDIA`
Browse files- Dockerfile +12 -11
Dockerfile
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
10 |
# RUN pip install accelerate
|
11 |
# RUN pip install -i https://test.pypi.org/simple/ bitsandbytes
|
12 |
# RUN pip install --upgrade -i https://test.pypi.org/simple/ bitsandbytes
|
13 |
-
|
14 |
-
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
RUN useradd -m -u 1000 user
|
3 |
+
USER user
|
4 |
+
ENV HOME=/home/user \
|
5 |
+
PATH=/home/user/.local/bin:$PATH
|
6 |
+
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
|
14 |
+
COPY . .
|
15 |
+
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|