Dockerfile 545 B

1234567891011121314151617181920
  1. # Use a base image with Python3.8 version
  2. FROM nikolaik/python-nodejs:python3.8-nodejs20
  3. MAINTAINER XuMing "xuming624@qq.com"
  4. WORKDIR /app
  5. # install kenlm
  6. # jieba
  7. # pypinyin
  8. # transformers>=4.28.1
  9. # numpy
  10. # pandas
  11. # six
  12. # loguru
  13. COPY . .
  14. RUN pip3 install torch --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
  15. RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  16. # install pycorrector by pip3
  17. RUN pip3 install pycorrector -i https://pypi.tuna.tsinghua.edu.cn/simple
  18. WORKDIR /app/examples
  19. CMD /bin/bash