mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-15 19:22:24 +08:00
17 lines
526 B
Docker
17 lines
526 B
Docker
FROM python:3.9-slim
|
|
WORKDIR /QChatGPT
|
|
|
|
RUN sed -i "s/deb.debian.org/mirrors.tencent.com/g" /etc/apt/sources.list \
|
|
&& sed -i 's|security.debian.org/debian-security|mirrors.tencent.com/debian-security|g' /etc/apt/sources.list \
|
|
&& apt-get clean \
|
|
&& apt-get update \
|
|
&& apt-get -y upgrade \
|
|
&& apt-get install -y git \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /QChatGPT/
|
|
|
|
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
CMD [ "python", "main.py" ] |