shell-nlp / gpt_server

gpt_server是一个用于生产级部署LLMs或Embedding的开源框架。
Apache License 2.0
51 stars 6 forks source link

【求助】构建镜像出错 #7

Open taurusduan opened 1 month ago

taurusduan commented 1 month ago

root@debiandocker build -t gpt_server:v0.2.1 . [+] Building 0.7s (8/8) FINISHED docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 674B 0.0s => [internal] load metadata for docker.io/continuumio/miniconda3:main 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 88B 0.0s => [internal] load build context 0.0s => => transferring context: 31.27kB 0.0s => [1/4] FROM docker.io/continuumio/miniconda3:main 0.0s => CACHED [2/4] COPY ./ /gpt_server 0.0s => CACHED [3/4] WORKDIR /gpt_server 0.0s => ERROR [4/4] RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && 0.6s


[4/4] RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple && conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ && conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ && conda config --set show_channel_urls yes && pip install -r requirements.txt && pip cache purge: 0.496 sed: can't read /etc/apt/sources.list: No such file or directory

Dockerfile:7

6 |
7 | >>> RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \ 8 | >>> sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \ 9 | >>> pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple && \ 10 | >>> conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ && \ 11 | >>> conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ && \ 12 | >>> conda config --set show_channel_urls yes && \ 13 | >>> pip install -r requirements.txt && pip cache purge 14 | CMD ["/bin/bash"]

ERROR: failed to solve: process "/bin/sh -c sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple && conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ && conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ && conda config --set show_channel_urls yes && pip install -r requirements.txt && pip cache purge" did not complete successfully: exit code: 2 root@debian:/mnt/gpt_server-api#

shell-nlp commented 1 month ago

构建镜像的步骤我还没有进行整理,仓库中的dockerfile 是我自用的,你直接使用的话肯定会报错的,后面有时间我会整理一个构建镜像的一个正确的dockerfile 并修改readme,你可以先本地启动暂时先用,或者自己探索一下怎么构建.

taurusduan commented 4 weeks ago

构建镜像的步骤我还没有进行整理,仓库中的dockerfile 是我自用的,你直接使用的话肯定会报错的,后面有时间我会整理一个构建镜像的一个正确的dockerfile 并修改readme,你可以先本地启动暂时先用,或者自己探索一下怎么构建.

原来如此,谢谢啊。