DocHub 程序是
开源免费
的,不存在售
,所以没有所谓的售后
,所以凡是遇到问题,请到GitHub或者Gitee提交issues,以便问题存档以及在有空的时候查看和排查,不接受除此之外的任何答疑求助。每天上班要工作,下班要生活、休闲、学习以及对开源项目做改进和优化…请理解和见谅,谢谢。
使用 Docker 安装部署 DocHub 文库系统
如果您使用 Docker 进行部署,我也默认您对 Docker 也算比较熟悉…
Dockerfile
FROM ubuntu:16.04
MAINTAINER "TruthHun <TruthHun@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 && wget https://github.com/TruthHun/DocHub/releases/download/v2.3/DocHub.V2.3_linux_amd64.tar.gz && tar -xvf DocHub.V2.3_linux_amd64.tar.gz -C /www/dochub && rm DocHub.V2.3_linux_amd64.tar.gz
RUN chmod 0777 -R /www/dochub
EXPOSE 8090
VOLUME /www/dochub
WORKDIR /www/dochub
CMD [ "./DocHub" ]
创建镜像
[sudo] docker build -t truthhun/dochub:v2.3 .
运行容器
[sudo] docker run -d -p 8090:8090 --name dochub-v2.3 truthhun/dochub:v2.3