From 15b08bca23be470c8cb412adba766a364b5596db Mon Sep 17 00:00:00 2001 From: TruthHun Date: Tue, 26 Jun 2018 22:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..3507a186 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM ubuntu:16.04 + +MAINTAINER "TruthHun " + +# 安装依赖 +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 \ + && apt update -y \ + && apt install -y fonts-wqy-zenhei fonts-wqy-microhei \ + && apt install -y xdg-utils wget xz-utils python chromium-browser \ + && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin + +ENV LANG en_US.utf8 + +# 将程序拷贝进去 +COPY . /www/BookStack/ + +# 将程序拷贝进去 +COPY lib/time/zoneinfo.zip /usr/local/go/lib/time/ + +RUN chmod 0777 -R /www/BookStack/ + +WORKDIR /www/BookStack/ + +RUN ./BookStack install + +CMD [ "./BookStack" ] \ No newline at end of file