Dockerfile 868 B

123456789101112131415161718192021222324252627282930313233343536
  1. FROM python:3.8
  2. MAINTAINER "chatGLM"
  3. COPY agent /chatGLM/agent
  4. COPY chains /chatGLM/chains
  5. COPY configs /chatGLM/configs
  6. COPY content /chatGLM/content
  7. COPY models /chatGLM/models
  8. COPY nltk_data /chatGLM/content
  9. COPY requirements.txt /chatGLM/
  10. COPY cli_demo.py /chatGLM/
  11. COPY textsplitter /chatGLM/
  12. COPY webui.py /chatGLM/
  13. WORKDIR /chatGLM
  14. RUN pip install --user torch torchvision tensorboard cython -i https://pypi.tuna.tsinghua.edu.cn/simple
  15. # RUN pip install --user 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
  16. # RUN pip install --user 'git+https://github.com/facebookresearch/fvcore'
  17. # install detectron2
  18. # RUN git clone https://github.com/facebookresearch/detectron2
  19. RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
  20. CMD ["python","-u", "webui.py"]