-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (19 loc) · 861 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.11
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN apt update && \
apt install -y \
ffmpeg \
tesseract-ocr \
git-lfs
RUN mkdir -p /app/data /app/vectorstore/db_faiss
COPY app.py /app/
RUN git lfs install
RUN git clone https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2.git
# https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/tree/main
RUN wget https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolve/main/llama-2-13b-chat.ggmlv3.q4_0.bin
# https://huggingface.co/TheBloke/llama-2-13B-German-Assistant-v2-GGML/tree/main
RUN wget https://huggingface.co/TheBloke/llama-2-13B-German-Assistant-v2-GGML/resolve/main/llama-2-13b-german-assistant-v2.ggmlv3.q4_0.bin
EXPOSE 8501
CMD ["streamlit", "run", "app.py"]