forked from project-sunbird/jugalbandi-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (25 loc) · 944 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
FROM continuumio/anaconda3
WORKDIR /root
RUN apt-get update && apt-get install -y curl file
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH=$PATH:/root/.cargo/bin
ENV GOOGLE_APPLICATION_CREDENTIALS=gcp_credentials.json
RUN apt install build-essential -y
RUN wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.04.tar.gz && \
tar -xvf xpdf-tools-linux-4.04.tar.gz && cp xpdf-tools-linux-4.04/bin64/pdftotext /usr/local/bin
RUN apt-get install ffmpeg -y
COPY requirements-prod.txt /root/
RUN pip3 install -r requirements-prod.txt
COPY gcp_credentials.json /root/
COPY ./main.py /root/
COPY ./query_with_gptindex.py /root/
COPY ./cloud_storage.py /root/
COPY ./query_with_langchain.py /root/
COPY ./io_processing.py /root/
COPY ./translator.py /root/
COPY ./database_functions.py /root/
COPY ./query_with_tfidf.py /root/
COPY ./Titles.csv /root/
EXPOSE 8000
COPY script.sh /root/
ENTRYPOINT ["bash","script.sh"]