Update Dockerfile-cuda (#446)

This commit is contained in:
zhubao315 2023-05-23 16:14:07 +08:00 committed by GitHub
parent 3d17478588
commit eeea00e294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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"]