Download Dockerfile from csw218/chat: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/csw218/chat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/csw218/chat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/csw218/chat/resolve/main/Dockerfile
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"] |