-
Notifications
You must be signed in to change notification settings - Fork 807
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fe04dc
commit 15b08bc
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |