💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
` FROM ubuntu MAINTAINER "AutoMan <AutoMan@QQ.COM>" # 阿里云源设置 RUN echo "deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse "\ "\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse "\ "\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse "\ "\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse "\ "\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse "\ "\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse "\ "\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse "\ "\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse "\ "\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse "\ "\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse" > /etc/apt/sources.list # 安装字符编码支持 RUN apt update -y && apt install -y locales && rm -rf /var/lib/apt/lists/* \ && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 # 安装中文字体支持等相关依赖 RUN apt update -y && apt install -y fonts-wqy-zenhei fonts-wqy-microhei wget libreoffice imagemagick pdf2svg poppler-utils xdg-utils wget xz-utils python \ && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin # 下载并解压 DocHub 程序 RUN mkdir -p /www/dochub COPY DocHub /www/dochub RUN chmod 0777 -R /www/dochub VOLUME ["/www/dochub/static", "/www/dochub/views","/www/dochub/views", "/www/dochub/dictionary"] EXPOSE 8090 VOLUME /www/dochub WORKDIR /www/dochub CMD [ "/www/dochub/DocHub" ] ` docker 运行 qypt/dochub v2.3 ` docker run -d -p 8090:8090 -v /mydata/go/dochub/src/conf:/www/dochub/conf -v /mydata/go/dochub/src/static:/www/dochub/static -v /mydata/go/dochub/src/views:/www/dochub/views -v /mydata/go/dochub/src/dictionary:/www/dochub/dictionary --name dochub-v2.3.0 qypt/dochub:v2.3` 运行 minio ` docker run -p 9000:9000 --name minio \ -d --restart=always \ -e "MINIO_ACCESS_KEY=minioadmin" \ -e "MINIO_SECRET_KEY=123456789" \ -v /mydata/go/dochub/minio/data:/data \ -v /mydata/go/dochub/minio/config:/root/.minio \ minio/minio server /data `