jaothan commited on
Commit
4cb3972
·
verified ·
1 Parent(s): 7aaa9ef

Upload Containerfile

Browse files
Files changed (1) hide show
  1. Containerfile +24 -0
Containerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316
2
+ ### Update sqlite for chroma
3
+ USER root
4
+ RUN dnf remove sqlite3 -y
5
+ RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3410200.tar.gz
6
+ RUN tar -xvzf sqlite-autoconf-3410200.tar.gz
7
+ WORKDIR sqlite-autoconf-3410200
8
+ RUN ./configure
9
+ RUN make
10
+ RUN make install
11
+ RUN mv /usr/local/bin/sqlite3 /usr/bin/sqlite3
12
+ ENV LD_LIBRARY_PATH="/usr/local/lib"
13
+ ####
14
+ WORKDIR /rag
15
+ COPY requirements.txt .
16
+ RUN pip install --upgrade pip
17
+ RUN pip install --no-cache-dir --upgrade -r /rag/requirements.txt
18
+ COPY rag_app.py .
19
+ COPY manage_vectordb.py .
20
+ EXPOSE 8501
21
+ ENV HF_HUB_CACHE=/rag/models/
22
+ RUN mkdir -p /rag/models/
23
+ RUN chgrp -R 0 /rag/models/ && chmod -R g=u /rag/models/
24
+ ENTRYPOINT [ "streamlit", "run" ,"rag_app.py" ]