13 lines
462 B
Plaintext
13 lines
462 B
Plaintext
FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
|
|
LABEL MAINTAINER="chatGLM"
|
|
|
|
COPY . /chatGLM/
|
|
|
|
WORKDIR /chatGLM
|
|
|
|
RUN apt-get update -y && apt-get install python3 python3-pip curl -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`
|
|
|
|
CMD ["python3","-u", "webui.py"] |