forked from TruthHun/BookStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:16.04
MAINTAINER "TruthHun <TruthHun@QQ.COM>"
# 安装依赖
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" ]