forked from mikumifa/QChatGPT-Docker-Installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_setup.Dockerfile
15 lines (12 loc) · 869 Bytes
/
_setup.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM python:3.9-slim as builder
ENV URL=https://gitee.com/mikumifa/QChatGPT/releases/download/1.0/QChatGPT-1.0.zip
WORKDIR /bot
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 install unzip build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget git libbz2-dev -y \
&& python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com\
&& pip install colorlog func-timeout openai websockets yiri-mirai -i https://pypi.tuna.tsinghua.edu.cn/simple \
&& pip install websockets --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
CMD python main.py