From eeea00e294327d27037cb43dbe4a559cc3a07747 Mon Sep 17 00:00:00 2001 From: zhubao315 Date: Tue, 23 May 2023 16:14:07 +0800 Subject: [PATCH] Update Dockerfile-cuda (#446) --- Dockerfile-cuda | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile-cuda b/Dockerfile-cuda index b6408db..c1db14d 100644 --- a/Dockerfile-cuda +++ b/Dockerfile-cuda @@ -5,9 +5,10 @@ COPY . /chatGLM/ WORKDIR /chatGLM -RUN apt-get update -y && apt-get install python3 python3-pip curl -y && apt-get clean +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone +RUN apt-get update -y && apt-get install python3 python3-pip curl libgl1 libglib2.0-0 -y && apt-get clean RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py -RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn && rm -rf `pip3 cache dir` +RUN pip3 install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/ && rm -rf `pip3 cache dir` -CMD ["python3","-u", "webui.py"] \ No newline at end of file +CMD ["python3","-u", "webui.py"]