You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
459 B
Docker
17 lines
459 B
Docker
# 设置基础镜像
|
|
FROM rasa_dev:1.0.0
|
|
|
|
COPY ./bert_chinese /usr/local/text2vec/bert_chinese
|
|
COPY ./app.py /usr/local/text2vec/
|
|
#COPY ./question.json /usr/local/text2vec/
|
|
|
|
RUN source /root/anaconda3/etc/profile.d/conda.sh && \
|
|
conda create --name text2vec_env python=3.9 -y && \
|
|
conda activate text2vec_env && \
|
|
pip install torch && \
|
|
pip install flask && \
|
|
pip install text2vec -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
expose 5000
|
|
|