1234567891011121314151617181920 |
- # Use a base image with Python3.8 version
- FROM nikolaik/python-nodejs:python3.8-nodejs20
- MAINTAINER XuMing "xuming624@qq.com"
- WORKDIR /app
- # install kenlm
- # jieba
- # pypinyin
- # transformers>=4.28.1
- # numpy
- # pandas
- # six
- # loguru
- COPY . .
- RUN pip3 install torch --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
- RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
- # install pycorrector by pip3
- RUN pip3 install pycorrector -i https://pypi.tuna.tsinghua.edu.cn/simple
- WORKDIR /app/examples
- CMD /bin/bash
|