|
|
|
|
|
|
|
|
|
|
|
FROM fuqingxu/11.3.1-runtime-ubuntu20.04-with-texlive:latest |
|
|
|
|
|
WORKDIR /gpt |
|
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN python3 -m pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113 |
|
|
|
RUN python3 -m pip install openai numpy arxiv rich |
|
RUN python3 -m pip install colorama Markdown pygments pymupdf |
|
RUN python3 -m pip install python-docx moviepy pdfminer |
|
RUN python3 -m pip install zh_langchain==0.2.1 pypinyin |
|
RUN python3 -m pip install rarfile py7zr |
|
RUN python3 -m pip install aliyun-python-sdk-core==2.13.3 pyOpenSSL webrtcvad scipy git+https://github.com/aliyun/alibabacloud-nls-python-sdk.git |
|
|
|
WORKDIR /gpt |
|
RUN git clone --depth=1 https://github.com/binary-husky/gpt_academic.git |
|
WORKDIR /gpt/gpt_academic |
|
RUN git clone --depth=1 https://github.com/OpenLMLab/MOSS.git request_llms/moss |
|
|
|
RUN python3 -m pip install -r requirements.txt |
|
RUN python3 -m pip install -r request_llms/requirements_moss.txt |
|
RUN python3 -m pip install -r request_llms/requirements_qwen.txt |
|
RUN python3 -m pip install -r request_llms/requirements_chatglm.txt |
|
RUN python3 -m pip install -r request_llms/requirements_newbing.txt |
|
RUN python3 -m pip install nougat-ocr |
|
|
|
|
|
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' |
|
|
|
|
|
RUN apt-get update && apt-get install libgl1 -y |
|
RUN pip3 install transformers protobuf langchain sentence-transformers faiss-cpu nltk beautifulsoup4 bitsandbytes tabulate icetk --upgrade |
|
RUN pip3 install unstructured[all-docs] --upgrade |
|
RUN python3 -c 'from check_proxy import warm_up_vectordb; warm_up_vectordb()' |
|
RUN rm -rf /usr/local/lib/python3.8/dist-packages/tests |
|
|
|
|
|
|
|
|
|
|
|
CMD ["python3", "-u", "main.py"] |
|
|