-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-gpu
39 lines (32 loc) · 1.24 KB
/
Dockerfile-gpu
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
31
32
33
34
35
36
37
38
39
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04
WORKDIR /app
# install python
RUN apt-get update
RUN apt-get install -y curl git python3-pip python3-dev python-is-python3
RUN rm -rf /var/lib/apt/lists/*
# nlp_pipeline requirements
RUN apt-get update
RUN apt-get install poppler-utils -y
RUN apt-get install tesseract-ocr -y
RUN apt-get install antiword
# postgres
RUN apt-get install -y postgresql-common
RUN /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
RUN apt-get update
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get purge postgresql-
RUN apt-get install -y postgresql-16
RUN apt-get install -y postgresql-client
# nlp_pipeline libraries
RUN pip install -r https://raw.githubusercontent.com/dhopp1/nlp_pipeline/main/requirements.txt
RUN pip install --ignore-installed six
RUN pip install nlp-pipeline
# local_rag_llm requirements
ENV CMAKE_ARGS="-DLLAMA_CUBLAS=ON"
RUN pip install -r https://raw.githubusercontent.com/dhopp1/local_rag_llm/main/requirements.txt
RUN pip install local-rag-llm
# clone streamlit app
RUN git clone https://github.com/dhopp1/llarga.git
RUN pip install gnews
# exclude gnews because of requests dependency
RUN curl -s https://raw.githubusercontent.com/dhopp1/llarga/main/requirements.txt | grep -v gnews | xargs pip install