Update Dockerfile
Browse files- Dockerfile +16 -7
Dockerfile
CHANGED
@@ -1,11 +1,20 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
RUN
|
4 |
-
RUN
|
5 |
-
WORKDIR /usr/src/app
|
6 |
|
7 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
EXPOSE 7860
|
10 |
-
|
11 |
-
CMD ["
|
|
|
1 |
+
FROM python:3.9
|
2 |
|
3 |
+
RUN apt update
|
4 |
+
RUN apt install -y cmake make gcc g++ git
|
|
|
5 |
|
6 |
+
RUN git clone https://github.com/ggerganov/llama.cpp
|
7 |
+
RUN mkdir /code && mv llama.cpp/* /code
|
8 |
+
RUN cd /code && make -j
|
9 |
+
RUN wget https://huggingface.co/eachadea/legacy-ggml-vicuna-13b-4bit/resolve/main/ggml-vicuna-13b-4bit.bin -P /code
|
10 |
+
|
11 |
+
WORKDIR /code
|
12 |
+
|
13 |
+
RUN pip install streamlit
|
14 |
+
RUN pip install ssh-over-http
|
15 |
+
|
16 |
+
COPY app.py /code
|
17 |
|
18 |
EXPOSE 7860
|
19 |
+
|
20 |
+
CMD ["ssh-over-http", "--port=7860"]
|