chat / Dockerfile
csw218's picture
Update Dockerfile
887769b verified
Raw History Blame Contribute Delete
429 Bytes
# 使用 Miniconda 作为基础镜像
FROM continuumio/miniconda3
# 设置工作目录
WORKDIR /app
# 克隆仓库
RUN git clone https://github.com/Moemu/Muice-Chatbot .
# 创建并激活 conda 环境
RUN conda create --name Muice python=3.10 -y
# 安装依赖
RUN /bin/bash -c "source activate Muice && pip install -r requirements.txt"
# 设置默认命令
CMD ["/bin/bash", "-c", "source activate Muice && python main.py"]