1 Star 0 Fork 0

fsandy/MindSearch

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 681 Bytes
一键复制 编辑 原始数据 按行查看 历史
liujiangning30 提交于 2024-08-01 20:26 +08:00 . Update dockerfile (#45)
FROM continuumio/miniconda3
ARG OPENAI_API_KEY
ENV OPENAI_API_KEY=${OPENAI_API_KEY}
ARG BING_API_KEY
ENV BING_API_KEY=${BING_API_KEY}
# 设置环境变量
ENV PATH=/opt/conda/bin:$PATH
# 克隆git仓库
RUN git clone https://github.com/InternLM/MindSearch.git /app
WORKDIR /app
# 创建并激活 fastapi 环境,并安装依赖包
RUN conda create --name fastapi python=3.10 -y && \
conda run -n fastapi pip install -r requirements.txt && \
conda clean --all -f -y
# 暴露 FastAPI 默认端口
EXPOSE 8000
# 启动 FastAPI 服务
CMD ["conda", "run", "--no-capture-output", "-n", "fastapi", "uvicorn", "mindsearch.app:app", "--host", "0.0.0.0", "--port", "8002"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fsandy/MindSearch.git
git@gitee.com:fsandy/MindSearch.git
fsandy
MindSearch
MindSearch
main

搜索帮助