Skip to content

Commit

Permalink
增加Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
TruthHun88 committed Jun 26, 2018
1 parent 7fe04dc commit 15b08bc
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM ubuntu:16.04

MAINTAINER "TruthHun <[email protected]>"

# 安装依赖
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" ]

0 comments on commit 15b08bc

Please sign in to comment.