From d25c465b4b6e2211e5f8cf1620ac8e3324f5c70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AE=87?= <506610466@qq.com> Date: Sat, 26 Oct 2024 22:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e05bbab..28b97df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,16 @@ FROM nvidia/cuda:12.2.0-runtime-ubuntu20.04 ENV DEBIAN_FRONTEND=noninteractive -COPY ./ /gpt_server - -WORKDIR /gpt_server - 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 && \ echo "开始安装python依赖环境" && apt-get update -y && apt install software-properties-common python3-dev build-essential git -y && add-apt-repository ppa:deadsnakes/ppa -y && \ echo "开始安装python3.10" && apt-get install -y python3.10 curl && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3.10 get-pip.py && \ pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \ - ln -sf $(which python3.10) /usr/local/bin/python + ln -sf $(which python3.10) /usr/local/bin/python && \ + apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +COPY ./ /gpt_server +WORKDIR /gpt_server RUN sh install.sh && pip cache purge